-
nltk
nltk.html
Package
Package
VISIBLE
The Natural Language Toolkit (NLTK) is an open source Python library for Natural Language Processing. A free online book is available. (If you use the library for academic research, please cite the book.)
-
nltk.app
nltk.app.html
Package
Package
VISIBLE
Interactive NLTK Applications:
-
nltk.app.chartparser_app
nltk.app.chartparser_app.html
ZopeInterfaceModule
Module
VISIBLE
A graphical tool for exploring chart parsing.
-
nltk.app.chunkparser_app
nltk.app.chunkparser_app.html
ZopeInterfaceModule
Module
VISIBLE
A graphical tool for exploring the regular expression based chunk parser nltk.chunk.RegexpChunkParser.
-
nltk.app.collocations_app
nltk.app.collocations_app.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.app.concordance_app
nltk.app.concordance_app.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.app.nemo_app
nltk.app.nemo_app.html
ZopeInterfaceModule
Module
VISIBLE
Finding (and Replacing) Nemo
-
nltk.app.rdparser_app
nltk.app.rdparser_app.html
ZopeInterfaceModule
Module
VISIBLE
A graphical tool for exploring the recursive descent parser.
-
nltk.app.srparser_app
nltk.app.srparser_app.html
ZopeInterfaceModule
Module
VISIBLE
A graphical tool for exploring the shift-reduce parser.
-
nltk.app.wordfreq_app
nltk.app.wordfreq_app.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.app.wordnet_app
nltk.app.wordnet_app.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.book
nltk.book.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.ccg
nltk.ccg.html
Package
Package
VISIBLE
Combinatory Categorial Grammar.
-
nltk.ccg.api
nltk.ccg.api.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 5/5 classes documented
-
nltk.ccg.chart
nltk.ccg.chart.html
ZopeInterfaceModule
Module
VISIBLE
The lexicon is constructed by calling lexicon.fromstring(<lexicon string>).
-
nltk.ccg.combinator
nltk.ccg.combinator.html
ZopeInterfaceModule
Module
VISIBLE
CCG Combinators
-
nltk.ccg.lexicon
nltk.ccg.lexicon.html
ZopeInterfaceModule
Module
VISIBLE
CCG Lexicons
-
nltk.ccg.logic
nltk.ccg.logic.html
ZopeInterfaceModule
Module
VISIBLE
Helper functions for CCG semantics computation
-
nltk.chat
nltk.chat.html
Package
Package
VISIBLE
A class for simple chatbots. These perform simple pattern matching on sentences typed by users, and respond with automatically generated sentences.
-
nltk.chat.eliza
nltk.chat.eliza.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.chat.iesha
nltk.chat.iesha.html
ZopeInterfaceModule
Module
VISIBLE
This chatbot is a tongue-in-cheek take on the average teen anime junky that frequents YahooMessenger or MSNM. All spelling mistakes and flawed grammar are intentional.
-
nltk.chat.rude
nltk.chat.rude.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.chat.suntsu
nltk.chat.suntsu.html
ZopeInterfaceModule
Module
VISIBLE
Tsu bot responds to all queries with a Sun Tsu sayings
-
nltk.chat.util
nltk.chat.util.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.chat.zen
nltk.chat.zen.html
ZopeInterfaceModule
Module
VISIBLE
Zen Chatbot talks in gems of Zen wisdom.
-
nltk.chunk
nltk.chunk.html
Package
Package
VISIBLE
No summary
-
nltk.chunk.api
nltk.chunk.api.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.chunk.named_entity
nltk.chunk.named_entity.html
ZopeInterfaceModule
Module
VISIBLE
Named entity chunker
-
nltk.chunk.regexp
nltk.chunk.regexp.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 3/3 functions, 12/12 classes documented
-
nltk.chunk.util
nltk.chunk.util.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/3 variable, 7/10 functions, 1/1 class documented
-
nltk.classify
nltk.classify.html
Package
Package
VISIBLE
No summary
-
nltk.classify.api
nltk.classify.api.html
ZopeInterfaceModule
Module
VISIBLE
Interfaces for labeling tokens with category labels (or "class labels").
-
nltk.classify.decisiontree
nltk.classify.decisiontree.html
ZopeInterfaceModule
Module
VISIBLE
A classifier model that decides which label to assign to a token on the basis of a tree structure, where branches correspond to conditions on feature values, and leaves correspond to label assignments.
-
nltk.classify.maxent
nltk.classify.maxent.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.classify.megam
nltk.classify.megam.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.classify.naivebayes
nltk.classify.naivebayes.html
ZopeInterfaceModule
Module
VISIBLE
A classifier based on the Naive Bayes algorithm. In order to find the probability for a label, this algorithm first uses the Bayes rule to express P(label|features) in terms of P(label) and P(features|label):
-
nltk.classify.positivenaivebayes
nltk.classify.positivenaivebayes.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.classify.rte_classify
nltk.classify.rte_classify.html
ZopeInterfaceModule
Module
VISIBLE
Simple classifier for RTE corpus.
-
nltk.classify.scikitlearn
nltk.classify.scikitlearn.html
ZopeInterfaceModule
Module
VISIBLE
scikit-learn (http://scikit-learn.org) is a machine learning library for Python. It supports many classification algorithms, including SVMs, Naive Bayes, logistic regression (MaxEnt) and decision trees.
-
nltk.classify.senna
nltk.classify.senna.html
ZopeInterfaceModule
Module
VISIBLE
A general interface to the SENNA pipeline that supports any of the operations specified in SUPPORTED_OPERATIONS.
-
nltk.classify.svm
nltk.classify.svm.html
ZopeInterfaceModule
Module
VISIBLE
nltk.classify.svm was deprecated. For classification based on support vector machines SVMs use nltk.classify.scikitlearn (or scikit-learn directly).
-
nltk.classify.tadm
nltk.classify.tadm.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 3/6 functions documented
-
nltk.classify.textcat
nltk.classify.textcat.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.classify.util
nltk.classify.util.html
ZopeInterfaceModule
Module
VISIBLE
Utility functions and classes for classifiers.
-
nltk.classify.weka
nltk.classify.weka.html
ZopeInterfaceModule
Module
VISIBLE
Classifiers that make use of the external 'Weka' package.
-
nltk.cli
nltk.cli.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 1/2 function documented
-
nltk.cluster
nltk.cluster.html
Package
Package
VISIBLE
No summary
-
nltk.cluster.api
nltk.cluster.api.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.cluster.em
nltk.cluster.em.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function, 1/1 class documented
-
nltk.cluster.gaac
nltk.cluster.gaac.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function, 1/1 class documented
-
nltk.cluster.kmeans
nltk.cluster.kmeans.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 function, 1/1 class documented
-
nltk.cluster.util
nltk.cluster.util.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 functions, 3/3 classes documented
-
nltk.collections
nltk.collections.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 8/9 classes documented
-
nltk.collocations
nltk.collocations.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.compat
nltk.compat.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.corpus
nltk.corpus.html
Package
Package
VISIBLE
No summary
-
nltk.corpus.europarl_raw
nltk.corpus.europarl_raw.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.corpus.reader
nltk.corpus.reader.html
Package
Package
VISIBLE
No summary
-
nltk.corpus.reader.aligned
nltk.corpus.reader.aligned.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 classes documented
-
nltk.corpus.reader.api
nltk.corpus.reader.api.html
ZopeInterfaceModule
Module
VISIBLE
API for corpus readers.
-
nltk.corpus.reader.bnc
nltk.corpus.reader.bnc.html
ZopeInterfaceModule
Module
VISIBLE
Corpus reader for the XML version of the British National Corpus.
-
nltk.corpus.reader.bracket_parse
nltk.corpus.reader.bracket_parse.html
ZopeInterfaceModule
Module
VISIBLE
Corpus reader for corpora that consist of parenthesis-delineated parse trees.
-
nltk.corpus.reader.categorized_sents
nltk.corpus.reader.categorized_sents.html
ZopeInterfaceModule
Module
VISIBLE
CorpusReader structured for corpora that contain one instance on each row. This CorpusReader is specifically used for the Subjectivity Dataset and the Sentence Polarity Dataset.
-
nltk.corpus.reader.chasen
nltk.corpus.reader.chasen.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/2 function, 1/2 class documented
-
nltk.corpus.reader.childes
nltk.corpus.reader.childes.html
ZopeInterfaceModule
Module
VISIBLE
Corpus reader for the XML version of the CHILDES corpus.
-
nltk.corpus.reader.chunked
nltk.corpus.reader.chunked.html
ZopeInterfaceModule
Module
VISIBLE
A reader for corpora that contain chunked (and optionally tagged) documents.
-
nltk.corpus.reader.cmudict
nltk.corpus.reader.cmudict.html
ZopeInterfaceModule
Module
VISIBLE
-
nltk.corpus.reader.comparative_sents
nltk.corpus.reader.comparative_sents.html
ZopeInterfaceModule
Module
VISIBLE
CorpusReader for the Comparative Sentence Dataset.
-
nltk.corpus.reader.conll
nltk.corpus.reader.conll.html
ZopeInterfaceModule
Module
VISIBLE
Read CoNLL-style chunk fileids.
-
nltk.corpus.reader.crubadan
nltk.corpus.reader.crubadan.html
ZopeInterfaceModule
Module
VISIBLE
An NLTK interface for the n-gram statistics gathered from the corpora for each language using An Crubadan.
-
nltk.corpus.reader.dependency
nltk.corpus.reader.dependency.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet
nltk.corpus.reader.framenet.html
ZopeInterfaceModule
Module
VISIBLE
Corpus reader for the FrameNet 1.7 lexicon and corpus.
-
nltk.corpus.reader.ieer
nltk.corpus.reader.ieer.html
ZopeInterfaceModule
Module
VISIBLE
Corpus reader for the Information Extraction and Entity Recognition Corpus.
-
nltk.corpus.reader.indian
nltk.corpus.reader.indian.html
ZopeInterfaceModule
Module
VISIBLE
Indian Language POS-Tagged Corpus Collected by A Kumaran, Microsoft Research, India Distributed with permission
-
nltk.corpus.reader.ipipan
nltk.corpus.reader.ipipan.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 function, 1/2 class documented
-
nltk.corpus.reader.knbc
nltk.corpus.reader.knbc.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 0/2 function, 1/1 class documented
-
nltk.corpus.reader.lin
nltk.corpus.reader.lin.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 function, 1/1 class documented
-
nltk.corpus.reader.mte
nltk.corpus.reader.mte.html
ZopeInterfaceModule
Module
VISIBLE
A reader for corpora whose documents are in MTE format.
-
nltk.corpus.reader.nkjp
nltk.corpus.reader.nkjp.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function, 4/6 classes documented
-
nltk.corpus.reader.nombank
nltk.corpus.reader.nombank.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 3/6 classes documented
-
nltk.corpus.reader.nps_chat
nltk.corpus.reader.nps_chat.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.corpus.reader.opinion_lexicon
nltk.corpus.reader.opinion_lexicon.html
ZopeInterfaceModule
Module
VISIBLE
CorpusReader for the Opinion Lexicon.
-
nltk.corpus.reader.panlex_lite
nltk.corpus.reader.panlex_lite.html
ZopeInterfaceModule
Module
VISIBLE
CorpusReader for PanLex Lite, a stripped down version of PanLex distributed as an SQLite database. See the README.txt in the panlex_lite corpus directory for more information on PanLex Lite.
-
nltk.corpus.reader.panlex_swadesh
nltk.corpus.reader.panlex_swadesh.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 1/1 class documented
-
nltk.corpus.reader.pl196x
nltk.corpus.reader.pl196x.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.corpus.reader.plaintext
nltk.corpus.reader.plaintext.html
ZopeInterfaceModule
Module
VISIBLE
A reader for corpora that consist of plaintext documents.
-
nltk.corpus.reader.ppattach
nltk.corpus.reader.ppattach.html
ZopeInterfaceModule
Module
VISIBLE
Read lines from the Prepositional Phrase Attachment Corpus.
-
nltk.corpus.reader.propbank
nltk.corpus.reader.propbank.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 3/7 classes documented
-
nltk.corpus.reader.pros_cons
nltk.corpus.reader.pros_cons.html
ZopeInterfaceModule
Module
VISIBLE
CorpusReader for the Pros and Cons dataset.
-
nltk.corpus.reader.reviews
nltk.corpus.reader.reviews.html
ZopeInterfaceModule
Module
VISIBLE
CorpusReader for reviews corpora (syntax based on Customer Review Corpus).
-
nltk.corpus.reader.rte
nltk.corpus.reader.rte.html
ZopeInterfaceModule
Module
VISIBLE
Corpus reader for the Recognizing Textual Entailment (RTE) Challenge Corpora.
-
nltk.corpus.reader.semcor
nltk.corpus.reader.semcor.html
ZopeInterfaceModule
Module
VISIBLE
Corpus reader for the SemCor Corpus.
-
nltk.corpus.reader.senseval
nltk.corpus.reader.senseval.html
ZopeInterfaceModule
Module
VISIBLE
Read from the Senseval 2 Corpus.
-
nltk.corpus.reader.sentiwordnet
nltk.corpus.reader.sentiwordnet.html
ZopeInterfaceModule
Module
VISIBLE
An NLTK interface for SentiWordNet
-
nltk.corpus.reader.sinica_treebank
nltk.corpus.reader.sinica_treebank.html
ZopeInterfaceModule
Module
VISIBLE
Sinica Treebank Corpus Sample
-
nltk.corpus.reader.string_category
nltk.corpus.reader.string_category.html
ZopeInterfaceModule
Module
VISIBLE
Read tuples from a corpus consisting of categorized strings. For example, from the question classification corpus:
-
nltk.corpus.reader.switchboard
nltk.corpus.reader.switchboard.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/2 class documented
-
nltk.corpus.reader.tagged
nltk.corpus.reader.tagged.html
ZopeInterfaceModule
Module
VISIBLE
A reader for corpora whose documents contain part-of-speech-tagged words.
-
nltk.corpus.reader.timit
nltk.corpus.reader.timit.html
ZopeInterfaceModule
Module
VISIBLE
Read tokens, phonemes and audio data from the NLTK TIMIT Corpus.
-
nltk.corpus.reader.toolbox
nltk.corpus.reader.toolbox.html
ZopeInterfaceModule
Module
VISIBLE
Module for reading, writing and manipulating Toolbox databases and settings fileids.
-
nltk.corpus.reader.udhr
nltk.corpus.reader.udhr.html
ZopeInterfaceModule
Module
VISIBLE
UDHR corpus reader. It mostly deals with encodings.
-
nltk.corpus.reader.util
nltk.corpus.reader.util.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 4/13 functions, 3/3 classes documented
-
nltk.corpus.reader.verbnet
nltk.corpus.reader.verbnet.html
ZopeInterfaceModule
Module
VISIBLE
An NLTK interface to the VerbNet verb lexicon
-
nltk.corpus.reader.wordlist
nltk.corpus.reader.wordlist.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 4/5 classes documented
-
nltk.corpus.reader.wordnet
nltk.corpus.reader.wordnet.html
ZopeInterfaceModule
Module
VISIBLE
An NLTK interface for WordNet
-
nltk.corpus.reader.xmldocs
nltk.corpus.reader.xmldocs.html
ZopeInterfaceModule
Module
VISIBLE
Corpus reader for corpora whose documents are xml files.
-
nltk.corpus.reader.ycoe
nltk.corpus.reader.ycoe.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.corpus.util
nltk.corpus.util.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 1/1 function, 1/1 class documented
-
nltk.data
nltk.data.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.decorators
nltk.decorators.html
ZopeInterfaceModule
Module
VISIBLE
-
nltk.downloader
nltk.downloader.html
ZopeInterfaceModule
Module
VISIBLE
The NLTK corpus and module downloader. This module defines several interfaces which can be used to download corpora, models, and other data packages that can be used with NLTK.
-
nltk.draw
nltk.draw.html
Package
Package
VISIBLE
No package docstring; 5/5 modules documented
-
nltk.draw.cfg
nltk.draw.cfg.html
ZopeInterfaceModule
Module
VISIBLE
Visualization tools for CFGs.
-
nltk.draw.dispersion
nltk.draw.dispersion.html
ZopeInterfaceModule
Module
VISIBLE
A utility for displaying lexical dispersion.
-
nltk.draw.table
nltk.draw.table.html
ZopeInterfaceModule
Module
VISIBLE
Tkinter widgets for displaying multi-column listboxes and tables.
-
nltk.draw.tree
nltk.draw.tree.html
ZopeInterfaceModule
Module
VISIBLE
Graphically display a Tree.
-
nltk.draw.util
nltk.draw.util.html
ZopeInterfaceModule
Module
VISIBLE
Tools for graphically displaying and interacting with the objects and processing classes defined by the Toolkit. These tools are primarily intended to help students visualize the objects that they create.
-
nltk.featstruct
nltk.featstruct.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.grammar
nltk.grammar.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.help
nltk.help.html
ZopeInterfaceModule
Module
VISIBLE
Provide structured access to documentation.
-
nltk.inference
nltk.inference.html
Package
Package
VISIBLE
Classes and interfaces for theorem proving and model building.
-
nltk.inference.api
nltk.inference.api.html
ZopeInterfaceModule
Module
VISIBLE
Interfaces and base classes for theorem provers and model builders.
-
nltk.inference.discourse
nltk.inference.discourse.html
ZopeInterfaceModule
Module
VISIBLE
Module for incrementally developing simple discourses, and checking for semantic ambiguity, consistency and informativeness.
-
nltk.inference.mace
nltk.inference.mace.html
ZopeInterfaceModule
Module
VISIBLE
A model builder that makes use of the external 'Mace4' package.
-
nltk.inference.nonmonotonic
nltk.inference.nonmonotonic.html
ZopeInterfaceModule
Module
VISIBLE
A module to perform nonmonotonic reasoning. The ideas and demonstrations in this module are based on "Logical Foundations of Artificial Intelligence" by Michael R. Genesereth and Nils J. Nilsson.
-
nltk.inference.prover9
nltk.inference.prover9.html
ZopeInterfaceModule
Module
VISIBLE
A theorem prover that makes use of the external 'Prover9' package.
-
nltk.inference.resolution
nltk.inference.resolution.html
ZopeInterfaceModule
Module
VISIBLE
Module for a resolution-based First Order theorem prover.
-
nltk.inference.tableau
nltk.inference.tableau.html
ZopeInterfaceModule
Module
VISIBLE
Module for a tableau-based First Order theorem prover.
-
nltk.internals
nltk.internals.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/7 variable, 15/22 functions, 4/4 classes documented
-
nltk.jsontags
nltk.jsontags.html
ZopeInterfaceModule
Module
VISIBLE
Register JSON tags, so the nltk data loader knows what module and class to look for.
-
nltk.lazyimport
nltk.lazyimport.html
ZopeInterfaceModule
Module
VISIBLE
Helper to enable simple lazy module import.
-
nltk.lm
nltk.lm.html
Package
Package
VISIBLE
NLTK Language Modeling Module. ------------------------------
-
nltk.lm.api
nltk.lm.api.html
ZopeInterfaceModule
Module
VISIBLE
Language Model Interface.
-
nltk.lm.counter
nltk.lm.counter.html
ZopeInterfaceModule
Module
VISIBLE
Language Model Counter ----------------------
-
nltk.lm.models
nltk.lm.models.html
ZopeInterfaceModule
Module
VISIBLE
Language Models
-
nltk.lm.preprocessing
nltk.lm.preprocessing.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 variable, 2/2 functions documented
-
nltk.lm.smoothing
nltk.lm.smoothing.html
ZopeInterfaceModule
Module
VISIBLE
Smoothing algorithms for language modeling.
-
nltk.lm.util
nltk.lm.util.html
ZopeInterfaceModule
Module
VISIBLE
Language Model Utilities
-
nltk.lm.vocabulary
nltk.lm.vocabulary.html
ZopeInterfaceModule
Module
VISIBLE
Language Model Vocabulary
-
nltk.metrics
nltk.metrics.html
Package
Package
VISIBLE
NLTK Metrics
-
nltk.metrics.agreement
nltk.metrics.agreement.html
ZopeInterfaceModule
Module
VISIBLE
Implementations of inter-annotator agreement coefficients surveyed by Artstein and Poesio (2007), Inter-Coder Agreement for Computational Linguistics.
-
nltk.metrics.aline
nltk.metrics.aline.html
ZopeInterfaceModule
Module
VISIBLE
-
nltk.metrics.association
nltk.metrics.association.html
ZopeInterfaceModule
Module
VISIBLE
Provides scoring functions for a number of association measures through a generic, abstract implementation in NgramAssocMeasures, and n-specific BigramAssocMeasures and TrigramAssocMeasures.
-
nltk.metrics.confusionmatrix
nltk.metrics.confusionmatrix.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 function, 1/1 class documented
-
nltk.metrics.distance
nltk.metrics.distance.html
ZopeInterfaceModule
Module
VISIBLE
Distance Metrics.
-
nltk.metrics.paice
nltk.metrics.paice.html
ZopeInterfaceModule
Module
VISIBLE
Counts Paice's performance statistics for evaluating stemming algorithms.
-
nltk.metrics.scores
nltk.metrics.scores.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 6/7 functions documented
-
nltk.metrics.segmentation
nltk.metrics.segmentation.html
ZopeInterfaceModule
Module
VISIBLE
Text Segmentation Metrics
-
nltk.metrics.spearman
nltk.metrics.spearman.html
ZopeInterfaceModule
Module
VISIBLE
Tools for comparing ranked lists.
-
nltk.misc
nltk.misc.html
Package
Package
VISIBLE
No package docstring; 3/5 modules documented
-
nltk.misc.babelfish
nltk.misc.babelfish.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.misc.chomsky
nltk.misc.chomsky.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.misc.minimalset
nltk.misc.minimalset.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.misc.sort
nltk.misc.sort.html
ZopeInterfaceModule
Module
VISIBLE
This module provides a variety of list sorting algorithms, to illustrate the many different algorithms (recipes) for solving a problem, and how to analyze algorithms experimentally.
-
nltk.misc.wordfinder
nltk.misc.wordfinder.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/5 function documented
-
nltk.parse
nltk.parse.html
Package
Package
VISIBLE
NLTK Parsers
-
nltk.parse.api
nltk.parse.api.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.parse.bllip
nltk.parse.bllip.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/4 function, 1/1 class documented
-
nltk.parse.chart
nltk.parse.chart.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.parse.corenlp
nltk.parse.corenlp.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 0/2 function, 4/5 classes documented
-
nltk.parse.dependencygraph
nltk.parse.dependencygraph.html
ZopeInterfaceModule
Module
VISIBLE
-
nltk.parse.earleychart
nltk.parse.earleychart.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.parse.evaluate
nltk.parse.evaluate.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.parse.featurechart
nltk.parse.featurechart.html
ZopeInterfaceModule
Module
VISIBLE
Extension of chart parsing implementation to handle grammars with feature structures as nodes.
-
nltk.parse.generate
nltk.parse.generate.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 1/4 function documented
-
nltk.parse.malt
nltk.parse.malt.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/3 functions, 1/1 class documented
-
nltk.parse.nonprojectivedependencyparser
nltk.parse.nonprojectivedependencyparser.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 0/4 function, 4/5 classes documented
-
nltk.parse.pchart
nltk.parse.pchart.html
ZopeInterfaceModule
Module
VISIBLE
Classes and interfaces for associating probabilities with tree structures that represent the internal organization of a text. The probabilistic parser module defines BottomUpProbabilisticChartParser.
-
nltk.parse.projectivedependencyparser
nltk.parse.projectivedependencyparser.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 3/4 functions, 4/4 classes documented
-
nltk.parse.recursivedescent
nltk.parse.recursivedescent.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function, 2/2 classes documented
-
nltk.parse.shiftreduce
nltk.parse.shiftreduce.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function, 2/2 classes documented
-
nltk.parse.stanford
nltk.parse.stanford.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 4/4 classes documented
-
nltk.parse.transitionparser
nltk.parse.transitionparser.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function, 3/3 classes documented
-
nltk.parse.util
nltk.parse.util.html
ZopeInterfaceModule
Module
VISIBLE
Utility functions for parsers.
-
nltk.parse.viterbi
nltk.parse.viterbi.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function, 1/1 class documented
-
nltk.probability
nltk.probability.html
ZopeInterfaceModule
Module
VISIBLE
Classes for representing and processing probabilistic information.
-
nltk.sem
nltk.sem.html
Package
Package
VISIBLE
NLTK Semantic Interpretation Package
-
nltk.sem.boxer
nltk.sem.boxer.html
ZopeInterfaceModule
Module
VISIBLE
An interface to Boxer.
-
nltk.sem.chat80
nltk.sem.chat80.html
ZopeInterfaceModule
Module
VISIBLE
Overview ========
-
nltk.sem.cooper_storage
nltk.sem.cooper_storage.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/2 function, 1/1 class documented
-
nltk.sem.drt
nltk.sem.drt.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/5 function, 4/21 classes documented
-
nltk.sem.drt_glue_demo
nltk.sem.drt_glue_demo.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.sem.evaluate
nltk.sem.evaluate.html
ZopeInterfaceModule
Module
VISIBLE
This module provides data structures for representing first-order models.
-
nltk.sem.glue
nltk.sem.glue.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.sem.hole
nltk.sem.hole.html
ZopeInterfaceModule
Module
VISIBLE
An implementation of the Hole Semantics model, following Blackburn and Bos, Representation and Inference for Natural Language (CSLI, 2005).
-
nltk.sem.lfg
nltk.sem.lfg.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.sem.linearlogic
nltk.sem.linearlogic.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 0/1 function, 1/12 class documented
-
nltk.sem.logic
nltk.sem.logic.html
ZopeInterfaceModule
Module
VISIBLE
A version of first order predicate logic, built on top of the typed lambda calculus.
-
nltk.sem.skolemize
nltk.sem.skolemize.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 functions documented
-
nltk.sem.util
nltk.sem.util.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.sentiment
nltk.sentiment.html
Package
Package
VISIBLE
NLTK Sentiment Analysis Package
-
nltk.sentiment.sentiment_analyzer
nltk.sentiment.sentiment_analyzer.html
ZopeInterfaceModule
Module
VISIBLE
A SentimentAnalyzer is a tool to implement and facilitate Sentiment Analysis tasks using NLTK features and classifiers, especially for teaching and demonstrative purposes.
-
nltk.sentiment.util
nltk.sentiment.util.html
ZopeInterfaceModule
Module
VISIBLE
Utility methods for Sentiment Analysis.
-
nltk.sentiment.vader
nltk.sentiment.vader.html
ZopeInterfaceModule
Module
VISIBLE
If you use the VADER sentiment analysis tools, please cite:
-
nltk.stem
nltk.stem.html
Package
Package
VISIBLE
NLTK Stemmers
-
nltk.stem.api
nltk.stem.api.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.stem.arlstem
nltk.stem.arlstem.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.stem.arlstem2
nltk.stem.arlstem2.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.stem.cistem
nltk.stem.cistem.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.stem.isri
nltk.stem.isri.html
ZopeInterfaceModule
Module
VISIBLE
ISRI Arabic Stemmer
-
nltk.stem.lancaster
nltk.stem.lancaster.html
ZopeInterfaceModule
Module
VISIBLE
A word stemmer based on the Lancaster (Paice/Husk) stemming algorithm. Paice, Chris D. "Another Stemmer." ACM SIGIR Forum 24.3 (1990): 56-61.
-
nltk.stem.porter
nltk.stem.porter.html
ZopeInterfaceModule
Module
VISIBLE
Porter Stemmer
-
nltk.stem.regexp
nltk.stem.regexp.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.stem.rslp
nltk.stem.rslp.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.stem.snowball
nltk.stem.snowball.html
ZopeInterfaceModule
Module
VISIBLE
Snowball stemmers
-
nltk.stem.util
nltk.stem.util.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 functions documented
-
nltk.stem.wordnet
nltk.stem.wordnet.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.tag
nltk.tag.html
Package
Package
VISIBLE
NLTK Taggers
-
nltk.tag.api
nltk.tag.api.html
ZopeInterfaceModule
Module
VISIBLE
Interface for tagging each token in a sentence with supplementary information, such as its part of speech.
-
nltk.tag.brill
nltk.tag.brill.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 5/5 functions, 3/3 classes documented
-
nltk.tag.brill_trainer
nltk.tag.brill_trainer.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.tag.crf
nltk.tag.crf.html
ZopeInterfaceModule
Module
VISIBLE
A module for POS tagging using CRFSuite
-
nltk.tag.hmm
nltk.tag.hmm.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.tag.hunpos
nltk.tag.hunpos.html
ZopeInterfaceModule
Module
VISIBLE
A module for interfacing with the HunPos open-source POS-tagger.
-
nltk.tag.mapping
nltk.tag.mapping.html
ZopeInterfaceModule
Module
VISIBLE
Interface for converting POS tags from various treebanks to the universal tagset of Petrov, Das, & McDonald.
-
nltk.tag.perceptron
nltk.tag.perceptron.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 0/3 function, 2/2 classes documented
-
nltk.tag.senna
nltk.tag.senna.html
ZopeInterfaceModule
Module
VISIBLE
Senna POS tagger, NER Tagger, Chunk Tagger
-
nltk.tag.sequential
nltk.tag.sequential.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.tag.stanford
nltk.tag.stanford.html
ZopeInterfaceModule
Module
VISIBLE
A module for interfacing with the Stanford taggers.
-
nltk.tag.tnt
nltk.tag.tnt.html
ZopeInterfaceModule
Module
VISIBLE
Implementation of 'TnT - A Statisical Part of Speech Tagger' by Thorsten Brants
-
nltk.tag.util
nltk.tag.util.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 3/3 functions documented
-
nltk.tbl
nltk.tbl.html
Package
Package
VISIBLE
Transformation Based Learning
-
nltk.tbl.api
nltk.tbl.api.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.tbl.demo
nltk.tbl.demo.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/2 variable, 13/16 functions documented
-
nltk.tbl.erroranalysis
nltk.tbl.erroranalysis.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function documented
-
nltk.tbl.feature
nltk.tbl.feature.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.tbl.rule
nltk.tbl.rule.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 classes documented
-
nltk.tbl.template
nltk.tbl.template.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 classes documented
-
nltk.test
nltk.test.html
Package
Package
VISIBLE
Unit tests for the NLTK modules. These tests are intended to ensure that source code changes don't accidentally introduce bugs. For instructions, please see:
-
nltk.test.all
nltk.test.all.html
ZopeInterfaceModule
Module
VISIBLE
Test suite that runs all NLTK tests.
-
nltk.test.childes_fixt
nltk.test.childes_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.classify_fixt
nltk.test.classify_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.conftest
nltk.test.conftest.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 functions documented
-
nltk.test.discourse_fixt
nltk.test.discourse_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.gensim_fixt
nltk.test.gensim_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.gluesemantics_malt_fixt
nltk.test.gluesemantics_malt_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.inference_fixt
nltk.test.inference_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.nonmonotonic_fixt
nltk.test.nonmonotonic_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.portuguese_en_fixt
nltk.test.portuguese_en_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.probability_fixt
nltk.test.probability_fixt.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit
nltk.test.unit.html
Package
Package
VISIBLE
No package docstring; 14/32 modules, 0/2 package documented
-
nltk.test.unit.lm
nltk.test.unit.lm.html
Package
Package
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter
nltk.test.unit.lm.test_counter.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/2 class documented
-
nltk.test.unit.lm.test_models
nltk.test.unit.lm.test_models.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 function, 6/9 classes documented
-
nltk.test.unit.lm.test_preprocessing
nltk.test.unit.lm.test_preprocessing.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary
nltk.test.unit.lm.test_vocabulary.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.test.unit.test_aline
nltk.test.unit.test_aline.html
ZopeInterfaceModule
Module
VISIBLE
Unit tests for nltk.metrics.aline
-
nltk.test.unit.test_brill
nltk.test.unit.test_brill.html
ZopeInterfaceModule
Module
VISIBLE
Tests for Brill tagger.
-
nltk.test.unit.test_cfd_mutation
nltk.test.unit.test_cfd_mutation.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_cfg2chomsky
nltk.test.unit.test_cfg2chomsky.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_chunk
nltk.test.unit.test_chunk.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_classify
nltk.test.unit.test_classify.html
ZopeInterfaceModule
Module
VISIBLE
Unit tests for nltk.classify. See also: nltk/test/classify.doctest
-
nltk.test.unit.test_collocations
nltk.test.unit.test_collocations.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 1/1 function, 0/1 class documented
-
nltk.test.unit.test_concordance
nltk.test.unit.test_concordance.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 function, 1/1 class documented
-
nltk.test.unit.test_corenlp
nltk.test.unit.test_corenlp.html
ZopeInterfaceModule
Module
VISIBLE
Mock test for Stanford CoreNLP wrappers.
-
nltk.test.unit.test_corpora
nltk.test.unit.test_corpora.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_corpus_views
nltk.test.unit.test_corpus_views.html
ZopeInterfaceModule
Module
VISIBLE
Corpus View Regression Tests
-
nltk.test.unit.test_data
nltk.test.unit.test_data.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_disagreement
nltk.test.unit.test_disagreement.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.test.unit.test_freqdist
nltk.test.unit.test_freqdist.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_hmm
nltk.test.unit.test_hmm.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus
nltk.test.unit.test_json2csv_corpus.html
ZopeInterfaceModule
Module
VISIBLE
Regression tests for json2csv() and json2csv_entities() in Twitter package.
-
nltk.test.unit.test_json_serialization
nltk.test.unit.test_json_serialization.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_metrics
nltk.test.unit.test_metrics.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_naivebayes
nltk.test.unit.test_naivebayes.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_nombank
nltk.test.unit.test_nombank.html
ZopeInterfaceModule
Module
VISIBLE
Unit tests for nltk.corpus.nombank
-
nltk.test.unit.test_pl196x
nltk.test.unit.test_pl196x.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_pos_tag
nltk.test.unit.test_pos_tag.html
ZopeInterfaceModule
Module
VISIBLE
Tests for nltk.pos_tag
-
nltk.test.unit.test_rte_classify
nltk.test.unit.test_rte_classify.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_seekable_unicode_stream_reader
nltk.test.unit.test_seekable_unicode_stream_reader.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_senna
nltk.test.unit.test_senna.html
ZopeInterfaceModule
Module
VISIBLE
Unit tests for Senna
-
nltk.test.unit.test_stem
nltk.test.unit.test_stem.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_tag
nltk.test.unit.test_tag.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.test_tgrep
nltk.test.unit.test_tgrep.html
ZopeInterfaceModule
Module
VISIBLE
Unit tests for nltk.tgrep.
-
nltk.test.unit.test_tokenize
nltk.test.unit.test_tokenize.html
ZopeInterfaceModule
Module
VISIBLE
Unit tests for nltk.tokenize. See also nltk/test/tokenize.doctest
-
nltk.test.unit.test_util
nltk.test.unit.test_util.html
ZopeInterfaceModule
Module
VISIBLE
Unit tests for nltk.util.
-
nltk.test.unit.test_wordnet
nltk.test.unit.test_wordnet.html
ZopeInterfaceModule
Module
VISIBLE
Unit tests for nltk.corpus.wordnet See also nltk/test/wordnet.doctest
-
nltk.test.unit.translate
nltk.test.unit.translate.html
Package
Package
VISIBLE
No package docstring; 10/11 modules documented
-
nltk.test.unit.translate.test_bleu
nltk.test.unit.translate.test_bleu.html
ZopeInterfaceModule
Module
VISIBLE
Tests for BLEU translation evaluation metric
-
nltk.test.unit.translate.test_gdfa
nltk.test.unit.translate.test_gdfa.html
ZopeInterfaceModule
Module
VISIBLE
Tests GDFA alignments
-
nltk.test.unit.translate.test_ibm1
nltk.test.unit.translate.test_ibm1.html
ZopeInterfaceModule
Module
VISIBLE
Tests for IBM Model 1 training methods
-
nltk.test.unit.translate.test_ibm2
nltk.test.unit.translate.test_ibm2.html
ZopeInterfaceModule
Module
VISIBLE
Tests for IBM Model 2 training methods
-
nltk.test.unit.translate.test_ibm3
nltk.test.unit.translate.test_ibm3.html
ZopeInterfaceModule
Module
VISIBLE
Tests for IBM Model 3 training methods
-
nltk.test.unit.translate.test_ibm4
nltk.test.unit.translate.test_ibm4.html
ZopeInterfaceModule
Module
VISIBLE
Tests for IBM Model 4 training methods
-
nltk.test.unit.translate.test_ibm5
nltk.test.unit.translate.test_ibm5.html
ZopeInterfaceModule
Module
VISIBLE
Tests for IBM Model 5 training methods
-
nltk.test.unit.translate.test_ibm_model
nltk.test.unit.translate.test_ibm_model.html
ZopeInterfaceModule
Module
VISIBLE
Tests for common methods of IBM translation models
-
nltk.test.unit.translate.test_meteor
nltk.test.unit.translate.test_meteor.html
ZopeInterfaceModule
Module
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_nist
nltk.test.unit.translate.test_nist.html
ZopeInterfaceModule
Module
VISIBLE
Tests for NIST translation evaluation metric
-
nltk.test.unit.translate.test_stack_decoder
nltk.test.unit.translate.test_stack_decoder.html
ZopeInterfaceModule
Module
VISIBLE
Tests for stack decoder
-
nltk.text
nltk.text.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.tgrep
nltk.tgrep.html
ZopeInterfaceModule
Module
VISIBLE
============================================ TGrep search implementation for NLTK trees ============================================
-
nltk.tokenize
nltk.tokenize.html
Package
Package
VISIBLE
NLTK Tokenizer Package
-
nltk.tokenize.api
nltk.tokenize.api.html
ZopeInterfaceModule
Module
VISIBLE
Tokenizer Interface
-
nltk.tokenize.casual
nltk.tokenize.casual.html
ZopeInterfaceModule
Module
VISIBLE
Twitter-aware tokenizer, designed to be flexible and easy to adapt to new domains and tasks. The basic logic is this:
-
nltk.tokenize.destructive
nltk.tokenize.destructive.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 classes documented
-
nltk.tokenize.legality_principle
nltk.tokenize.legality_principle.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.tokenize.mwe
nltk.tokenize.mwe.html
ZopeInterfaceModule
Module
VISIBLE
Multi-Word Expression Tokenizer
-
nltk.tokenize.nist
nltk.tokenize.nist.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.tokenize.punkt
nltk.tokenize.punkt.html
ZopeInterfaceModule
Module
VISIBLE
Punkt Sentence Tokenizer
-
nltk.tokenize.regexp
nltk.tokenize.regexp.html
ZopeInterfaceModule
Module
VISIBLE
Regular-Expression Tokenizers
-
nltk.tokenize.repp
nltk.tokenize.repp.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 class documented
-
nltk.tokenize.sexpr
nltk.tokenize.sexpr.html
ZopeInterfaceModule
Module
VISIBLE
S-Expression Tokenizer
-
nltk.tokenize.simple
nltk.tokenize.simple.html
ZopeInterfaceModule
Module
VISIBLE
Simple Tokenizers
-
nltk.tokenize.sonority_sequencing
nltk.tokenize.sonority_sequencing.html
ZopeInterfaceModule
Module
VISIBLE
No summary
-
nltk.tokenize.stanford
nltk.tokenize.stanford.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 1/1 class documented
-
nltk.tokenize.stanford_segmenter
nltk.tokenize.stanford_segmenter.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 1/1 class documented
-
nltk.tokenize.texttiling
nltk.tokenize.texttiling.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/5 variable, 1/2 function, 3/3 classes documented
-
nltk.tokenize.toktok
nltk.tokenize.toktok.html
ZopeInterfaceModule
Module
VISIBLE
The tok-tok tokenizer is a simple, general tokenizer, where the input has one sentence per line; thus only final period is tokenized.
-
nltk.tokenize.treebank
nltk.tokenize.treebank.html
ZopeInterfaceModule
Module
VISIBLE
Penn Treebank Tokenizer
-
nltk.tokenize.util
nltk.tokenize.util.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 7/7 functions, 1/1 class documented
-
nltk.toolbox
nltk.toolbox.html
ZopeInterfaceModule
Module
VISIBLE
Module for reading, writing and manipulating Toolbox databases and settings files.
-
nltk.translate
nltk.translate.html
Package
Package
VISIBLE
Experimental features for machine translation. These interfaces are prone to change.
-
nltk.translate.api
nltk.translate.api.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 0/1 variable, 1/3 function, 3/3 classes documented
-
nltk.translate.bleu_score
nltk.translate.bleu_score.html
ZopeInterfaceModule
Module
VISIBLE
BLEU score implementation.
-
nltk.translate.chrf_score
nltk.translate.chrf_score.html
ZopeInterfaceModule
Module
VISIBLE
ChrF score implementation
-
nltk.translate.gale_church
nltk.translate.gale_church.html
ZopeInterfaceModule
Module
VISIBLE
A port of the Gale-Church Aligner.
-
nltk.translate.gdfa
nltk.translate.gdfa.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function documented
-
nltk.translate.gleu_score
nltk.translate.gleu_score.html
ZopeInterfaceModule
Module
VISIBLE
GLEU score implementation.
-
nltk.translate.ibm1
nltk.translate.ibm1.html
ZopeInterfaceModule
Module
VISIBLE
Lexical translation model that ignores word order.
-
nltk.translate.ibm2
nltk.translate.ibm2.html
ZopeInterfaceModule
Module
VISIBLE
Lexical translation model that considers word order.
-
nltk.translate.ibm3
nltk.translate.ibm3.html
ZopeInterfaceModule
Module
VISIBLE
Translation model that considers how a word can be aligned to multiple words in another language.
-
nltk.translate.ibm4
nltk.translate.ibm4.html
ZopeInterfaceModule
Module
VISIBLE
Translation model that reorders output words based on their type and distance from other related words in the output sentence.
-
nltk.translate.ibm5
nltk.translate.ibm5.html
ZopeInterfaceModule
Module
VISIBLE
Translation model that keeps track of vacant positions in the target sentence to decide where to place translated words.
-
nltk.translate.ibm_model
nltk.translate.ibm_model.html
ZopeInterfaceModule
Module
VISIBLE
Common methods and classes for all IBM models. See IBMModel1, IBMModel2, IBMModel3, IBMModel4, and IBMModel5 for specific implementations.
-
nltk.translate.meteor_score
nltk.translate.meteor_score.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 12/12 functions documented
-
nltk.translate.metrics
nltk.translate.metrics.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function documented
-
nltk.translate.nist_score
nltk.translate.nist_score.html
ZopeInterfaceModule
Module
VISIBLE
NIST score implementation.
-
nltk.translate.phrase_based
nltk.translate.phrase_based.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 2/2 functions documented
-
nltk.translate.ribes_score
nltk.translate.ribes_score.html
ZopeInterfaceModule
Module
VISIBLE
RIBES score implementation
-
nltk.translate.stack_decoder
nltk.translate.stack_decoder.html
ZopeInterfaceModule
Module
VISIBLE
A decoder that uses stacks to implement phrase-based translation.
-
nltk.tree
nltk.tree.html
ZopeInterfaceModule
Module
VISIBLE
Class for representing hierarchical language structures, such as syntax trees and morphological trees.
-
nltk.treeprettyprinter
nltk.treeprettyprinter.html
ZopeInterfaceModule
Module
VISIBLE
-
nltk.treetransforms
nltk.treetransforms.html
ZopeInterfaceModule
Module
VISIBLE
A collection of methods for tree (grammar) transformations used in parsing natural language.
-
nltk.util
nltk.util.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 26/34 functions, 0/1 class documented
-
nltk.wsd
nltk.wsd.html
ZopeInterfaceModule
Module
VISIBLE
No module docstring; 1/1 function documented
-
nltk.internals._java_bin
nltk.internals.html#_java_bin
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.internals._java_options
nltk.internals.html#_java_options
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.internals.config_java
nltk.internals.html#config_java
ZopeInterfaceFunction
Function
VISIBLE
Configure nltk's java interface, by letting nltk know where it can find the Java binary, and what extra options (if any) should be passed to Java when it is run.
-
nltk.internals.java
nltk.internals.html#java
ZopeInterfaceFunction
Function
VISIBLE
Execute the given java command, by opening a subprocess that calls Java. If java has not yet been configured, it will be configured by calling config_java() with no arguments.
-
nltk.internals.a
nltk.internals.html#a
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.internals.b
nltk.internals.html#b
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.internals.ReadError
nltk.internals.ReadError.html
ZopeInterfaceClass
Class
VISIBLE
Exception raised by read_* functions when they fail. :param position: The index in the input string where an error occurred. :param expected: What was expected when an error occurred.
-
nltk.internals.ReadError.__init__
nltk.internals.ReadError.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ReadError.expected
nltk.internals.ReadError.html#expected
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.internals.ReadError.position
nltk.internals.ReadError.html#position
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.internals.ReadError.__str__
nltk.internals.ReadError.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals._STRING_START_RE
nltk.internals.html#_STRING_START_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.internals.read_str
nltk.internals.html#read_str
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.internals._READ_INT_RE
nltk.internals.html#_READ_INT_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.internals.read_int
nltk.internals.html#read_int
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.internals._READ_NUMBER_VALUE
nltk.internals.html#_READ_NUMBER_VALUE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.internals.read_number
nltk.internals.html#read_number
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.internals.overridden
nltk.internals.html#overridden
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.internals._mro
nltk.internals.html#_mro
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.internals._add_epytext_field
nltk.internals.html#_add_epytext_field
ZopeInterfaceFunction
Function
PRIVATE
Add an epytext @field to a given object's docstring.
-
nltk.internals.deprecated
nltk.internals.html#deprecated
ZopeInterfaceFunction
Function
VISIBLE
A decorator used to mark functions as deprecated. This will cause a warning to be printed the when the function is used. Usage:
-
nltk.internals.Deprecated
nltk.internals.Deprecated.html
ZopeInterfaceClass
Class
VISIBLE
A base class used to mark deprecated classes. A typical usage is to alert users that the name of a class has changed:
-
nltk.internals.Deprecated.__new__
nltk.internals.Deprecated.html#__new__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.Counter
nltk.internals.Counter.html
ZopeInterfaceClass
Class
VISIBLE
A counter that auto-increments each time its value is read.
-
nltk.internals.Counter.__init__
nltk.internals.Counter.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.Counter._value
nltk.internals.Counter.html#_value
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.internals.Counter.get
nltk.internals.Counter.html#get
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.find_file_iter
nltk.internals.html#find_file_iter
ZopeInterfaceFunction
Function
VISIBLE
Search for a file to be used by nltk.
-
nltk.internals.find_file
nltk.internals.html#find_file
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.internals.find_dir
nltk.internals.html#find_dir
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.internals.find_binary_iter
nltk.internals.html#find_binary_iter
ZopeInterfaceFunction
Function
VISIBLE
Search for a file to be used by nltk.
-
nltk.internals.find_binary
nltk.internals.html#find_binary
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.internals.find_jar_iter
nltk.internals.html#find_jar_iter
ZopeInterfaceFunction
Function
VISIBLE
Search for a jar that is used by nltk.
-
nltk.internals.find_jar
nltk.internals.html#find_jar
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.internals.find_jars_within_path
nltk.internals.html#find_jars_within_path
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.internals._decode_stdoutdata
nltk.internals.html#_decode_stdoutdata
ZopeInterfaceFunction
Function
PRIVATE
Convert data read from stdout/stderr to unicode
-
nltk.internals.import_from_stdlib
nltk.internals.html#import_from_stdlib
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.internals.ElementWrapper
nltk.internals.ElementWrapper.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.internals.ElementWrapper.__new__
nltk.internals.ElementWrapper.html#__new__
ZopeInterfaceFunction
Method
VISIBLE
Create and return a wrapper around a given Element object. If etree is an ElementWrapper, then etree is returned as-is.
-
nltk.internals.ElementWrapper.__init__
nltk.internals.ElementWrapper.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize a new Element wrapper for etree.
-
nltk.internals.ElementWrapper.unwrap
nltk.internals.ElementWrapper.html#unwrap
ZopeInterfaceFunction
Method
VISIBLE
Return the Element object wrapped by this wrapper.
-
nltk.internals.ElementWrapper.__repr__
nltk.internals.ElementWrapper.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__str__
nltk.internals.ElementWrapper.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.internals.ElementWrapper.__getattr__
nltk.internals.ElementWrapper.html#__getattr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__setattr__
nltk.internals.ElementWrapper.html#__setattr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__delattr__
nltk.internals.ElementWrapper.html#__delattr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__setitem__
nltk.internals.ElementWrapper.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__delitem__
nltk.internals.ElementWrapper.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__setslice__
nltk.internals.ElementWrapper.html#__setslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__delslice__
nltk.internals.ElementWrapper.html#__delslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__len__
nltk.internals.ElementWrapper.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__getitem__
nltk.internals.ElementWrapper.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.__getslice__
nltk.internals.ElementWrapper.html#__getslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.getchildren
nltk.internals.ElementWrapper.html#getchildren
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.getiterator
nltk.internals.ElementWrapper.html#getiterator
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.makeelement
nltk.internals.ElementWrapper.html#makeelement
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.find
nltk.internals.ElementWrapper.html#find
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.ElementWrapper.findall
nltk.internals.ElementWrapper.html#findall
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.internals.slice_bounds
nltk.internals.html#slice_bounds
ZopeInterfaceFunction
Function
VISIBLE
Given a slice, return the corresponding (start, stop) bounds, taking into account None indices and negative indices. The following guarantees are made for the returned start and stop values:
-
nltk.internals.is_writable
nltk.internals.html#is_writable
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.internals.raise_unorderable_types
nltk.internals.html#raise_unorderable_types
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.collections.OrderedDict
nltk.collections.OrderedDict.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.__init__
nltk.collections.OrderedDict.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict._keys
nltk.collections.OrderedDict.html#_keys
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.OrderedDict._default_factory
nltk.collections.OrderedDict.html#_default_factory
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.OrderedDict.__delitem__
nltk.collections.OrderedDict.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.__getitem__
nltk.collections.OrderedDict.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.__iter__
nltk.collections.OrderedDict.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.__missing__
nltk.collections.OrderedDict.html#__missing__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.__setitem__
nltk.collections.OrderedDict.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.clear
nltk.collections.OrderedDict.html#clear
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.copy
nltk.collections.OrderedDict.html#copy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.items
nltk.collections.OrderedDict.html#items
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.keys
nltk.collections.OrderedDict.html#keys
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.popitem
nltk.collections.OrderedDict.html#popitem
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.setdefault
nltk.collections.OrderedDict.html#setdefault
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.update
nltk.collections.OrderedDict.html#update
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.OrderedDict.values
nltk.collections.OrderedDict.html#values
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.AbstractLazySequence
nltk.collections.AbstractLazySequence.html
ZopeInterfaceClass
Class
VISIBLE
An abstract base class for read-only sequences whose values are computed as needed. Lazy sequences act like tuples -- they can be indexed, sliced, and iterated over; but they may not be modified.
-
nltk.collections.AbstractLazySequence.__len__
nltk.collections.AbstractLazySequence.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Return the number of tokens in the corpus file underlying this corpus view.
-
nltk.collections.AbstractLazySequence.iterate_from
nltk.collections.AbstractLazySequence.html#iterate_from
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.collections.AbstractLazySequence.__getitem__
nltk.collections.AbstractLazySequence.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Return the i th token in the corpus file underlying this corpus view. Negative indices and spans are both supported.
-
nltk.collections.AbstractLazySequence.__iter__
nltk.collections.AbstractLazySequence.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator that generates the tokens in the corpus file underlying this corpus view.
-
nltk.collections.AbstractLazySequence.count
nltk.collections.AbstractLazySequence.html#count
ZopeInterfaceFunction
Method
VISIBLE
Return the number of times this list contains value.
-
nltk.collections.AbstractLazySequence.index
nltk.collections.AbstractLazySequence.html#index
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.collections.AbstractLazySequence.__contains__
nltk.collections.AbstractLazySequence.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Return true if this list contains value.
-
nltk.collections.AbstractLazySequence.__add__
nltk.collections.AbstractLazySequence.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Return a list concatenating self with other.
-
nltk.collections.AbstractLazySequence.__radd__
nltk.collections.AbstractLazySequence.html#__radd__
ZopeInterfaceFunction
Method
VISIBLE
Return a list concatenating other with self.
-
nltk.collections.AbstractLazySequence.__mul__
nltk.collections.AbstractLazySequence.html#__mul__
ZopeInterfaceFunction
Method
VISIBLE
Return a list concatenating self with itself count times.
-
nltk.collections.AbstractLazySequence.__rmul__
nltk.collections.AbstractLazySequence.html#__rmul__
ZopeInterfaceFunction
Method
VISIBLE
Return a list concatenating self with itself count times.
-
nltk.collections.AbstractLazySequence._MAX_REPR_SIZE
nltk.collections.AbstractLazySequence.html#_MAX_REPR_SIZE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.collections.AbstractLazySequence.__repr__
nltk.collections.AbstractLazySequence.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation for this corpus view that is similar to a list's representation; but if it would be more than 60 characters long, it is truncated.
-
nltk.collections.AbstractLazySequence.__eq__
nltk.collections.AbstractLazySequence.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.AbstractLazySequence.__ne__
nltk.collections.AbstractLazySequence.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.AbstractLazySequence.__lt__
nltk.collections.AbstractLazySequence.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.AbstractLazySequence.__hash__
nltk.collections.AbstractLazySequence.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.collections.LazySubsequence
nltk.collections.LazySubsequence.html
ZopeInterfaceClass
Class
VISIBLE
A subsequence produced by slicing a lazy sequence. This slice keeps a reference to its source sequence, and generates its values by looking them up in the source sequence.
-
nltk.collections.LazySubsequence.MIN_SIZE
nltk.collections.LazySubsequence.html#MIN_SIZE
ZopeInterfaceAttribute
Class Variable
VISIBLE
The minimum size for which lazy slices should be created. If LazySubsequence() is called with a subsequence that is shorter than MIN_SIZE, then a tuple will be returned instead.
-
nltk.collections.LazySubsequence.__new__
nltk.collections.LazySubsequence.html#__new__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.collections.LazySubsequence.__init__
nltk.collections.LazySubsequence.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.LazySubsequence._source
nltk.collections.LazySubsequence.html#_source
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazySubsequence._start
nltk.collections.LazySubsequence.html#_start
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazySubsequence._stop
nltk.collections.LazySubsequence.html#_stop
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazySubsequence.__len__
nltk.collections.LazySubsequence.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Return the number of tokens in the corpus file underlying this corpus view.
-
nltk.collections.LazySubsequence.iterate_from
nltk.collections.LazySubsequence.html#iterate_from
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.collections.LazyConcatenation
nltk.collections.LazyConcatenation.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.collections.LazyConcatenation.__init__
nltk.collections.LazyConcatenation.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.LazyConcatenation._list
nltk.collections.LazyConcatenation.html#_list
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyConcatenation._offsets
nltk.collections.LazyConcatenation.html#_offsets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyConcatenation.__len__
nltk.collections.LazyConcatenation.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Return the number of tokens in the corpus file underlying this corpus view.
-
nltk.collections.LazyConcatenation.iterate_from
nltk.collections.LazyConcatenation.html#iterate_from
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.collections.LazyMap
nltk.collections.LazyMap.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.collections.LazyMap.__init__
nltk.collections.LazyMap.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.collections.LazyMap._lists
nltk.collections.LazyMap.html#_lists
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyMap._func
nltk.collections.LazyMap.html#_func
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyMap._cache_size
nltk.collections.LazyMap.html#_cache_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyMap._cache
nltk.collections.LazyMap.html#_cache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyMap._all_lazy
nltk.collections.LazyMap.html#_all_lazy
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyMap.iterate_from
nltk.collections.LazyMap.html#iterate_from
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.collections.LazyMap.__getitem__
nltk.collections.LazyMap.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Return the i th token in the corpus file underlying this corpus view. Negative indices and spans are both supported.
-
nltk.collections.LazyMap.__len__
nltk.collections.LazyMap.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Return the number of tokens in the corpus file underlying this corpus view.
-
nltk.collections.LazyZip
nltk.collections.LazyZip.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.collections.LazyZip.__init__
nltk.collections.LazyZip.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.collections.LazyZip.iterate_from
nltk.collections.LazyZip.html#iterate_from
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.collections.LazyZip.__len__
nltk.collections.LazyZip.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Return the number of tokens in the corpus file underlying this corpus view.
-
nltk.collections.LazyEnumerate
nltk.collections.LazyEnumerate.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.collections.LazyEnumerate.__init__
nltk.collections.LazyEnumerate.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.collections.LazyIteratorList
nltk.collections.LazyIteratorList.html
ZopeInterfaceClass
Class
VISIBLE
Wraps an iterator, loading its elements on demand and making them subscriptable. __repr__ displays only the first few elements.
-
nltk.collections.LazyIteratorList.__init__
nltk.collections.LazyIteratorList.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collections.LazyIteratorList._it
nltk.collections.LazyIteratorList.html#_it
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyIteratorList._len
nltk.collections.LazyIteratorList.html#_len
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyIteratorList._cache
nltk.collections.LazyIteratorList.html#_cache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.collections.LazyIteratorList.__len__
nltk.collections.LazyIteratorList.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Return the number of tokens in the corpus file underlying this corpus view.
-
nltk.collections.LazyIteratorList.iterate_from
nltk.collections.LazyIteratorList.html#iterate_from
ZopeInterfaceFunction
Method
VISIBLE
Create a new iterator over this list starting at the given offset.
-
nltk.collections.LazyIteratorList.__add__
nltk.collections.LazyIteratorList.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Return a list concatenating self with other.
-
nltk.collections.LazyIteratorList.__radd__
nltk.collections.LazyIteratorList.html#__radd__
ZopeInterfaceFunction
Method
VISIBLE
Return a list concatenating other with self.
-
nltk.collections.Trie
nltk.collections.Trie.html
ZopeInterfaceClass
Class
VISIBLE
A Trie implementation for strings
-
nltk.collections.Trie.LEAF
nltk.collections.Trie.html#LEAF
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.collections.Trie.__init__
nltk.collections.Trie.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Builds a Trie object, which is built around a dict
-
nltk.collections.Trie.insert
nltk.collections.Trie.html#insert
ZopeInterfaceFunction
Method
VISIBLE
Inserts string into the Trie
-
nltk.collections.Trie.__missing__
nltk.collections.Trie.html#__missing__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.util.usage
nltk.util.html#usage
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.util.in_idle
nltk.util.html#in_idle
ZopeInterfaceFunction
Function
VISIBLE
Return True if this function is run within idle. Tkinter programs that are run in idle should never call Tk.mainloop; so this function should be used to gate all calls to Tk.mainloop.
-
nltk.util.pr
nltk.util.html#pr
ZopeInterfaceFunction
Function
VISIBLE
Pretty print a sequence of data items
-
nltk.util.print_string
nltk.util.html#print_string
ZopeInterfaceFunction
Function
VISIBLE
Pretty print a string, breaking lines on whitespace
-
nltk.util.tokenwrap
nltk.util.html#tokenwrap
ZopeInterfaceFunction
Function
VISIBLE
Pretty print a list of text tokens, breaking lines on whitespace
-
nltk.util.py25
nltk.util.html#py25
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.util.Index
nltk.util.Index.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.util.Index.__init__
nltk.util.Index.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.util.re_show
nltk.util.html#re_show
ZopeInterfaceFunction
Function
VISIBLE
Return a string with markers surrounding the matched substrings. Search str for substrings matching regexp and wrap the matches with braces. This is convenient for learning about regular expressions.
-
nltk.util.filestring
nltk.util.html#filestring
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.util.breadth_first
nltk.util.html#breadth_first
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.util.acyclic_breadth_first
nltk.util.html#acyclic_breadth_first
ZopeInterfaceFunction
Function
VISIBLE
Traverse the nodes of a tree in breadth-first order, discarding eventual cycles.
-
nltk.util.acyclic_depth_first
nltk.util.html#acyclic_depth_first
ZopeInterfaceFunction
Function
VISIBLE
Traverse the nodes of a tree in depth-first order, discarding eventual cycles within any branch, adding cut_mark (when specified) if cycles were truncated.
-
nltk.util.acyclic_branches_depth_first
nltk.util.html#acyclic_branches_depth_first
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.util.acyclic_dic2tree
nltk.util.html#acyclic_dic2tree
ZopeInterfaceFunction
Function
VISIBLE
Convert acyclic dictionary 'dic', where the keys are nodes, and the values are lists of children, to output tree suitable for pprint(), starting at root 'node', with subtrees as nested lists.
-
nltk.util.unweighted_minimum_spanning_tree
nltk.util.html#unweighted_minimum_spanning_tree
ZopeInterfaceFunction
Function
VISIBLE
Output a Minimum Spanning Tree (MST) of an unweighted graph, by traversing the nodes of a tree in breadth-first order, discarding eventual cycles.
-
nltk.util.guess_encoding
nltk.util.html#guess_encoding
ZopeInterfaceFunction
Function
VISIBLE
Given a byte string, attempt to decode it. Tries the standard 'UTF8' and 'latin-1' encodings, Plus several gathered from locale information.
-
nltk.util.unique_list
nltk.util.html#unique_list
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.util.invert_dict
nltk.util.html#invert_dict
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.util.transitive_closure
nltk.util.html#transitive_closure
ZopeInterfaceFunction
Function
VISIBLE
Calculate the transitive closure of a directed graph, optionally the reflexive transitive closure.
-
nltk.util.invert_graph
nltk.util.html#invert_graph
ZopeInterfaceFunction
Function
VISIBLE
Inverts a directed graph.
-
nltk.util.clean_html
nltk.util.html#clean_html
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.util.clean_url
nltk.util.html#clean_url
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.util.flatten
nltk.util.html#flatten
ZopeInterfaceFunction
Function
VISIBLE
Flatten a list.
-
nltk.util.pad_sequence
nltk.util.html#pad_sequence
ZopeInterfaceFunction
Function
VISIBLE
Returns a padded sequence of items before ngram extraction.
-
nltk.util.ngrams
nltk.util.html#ngrams
ZopeInterfaceFunction
Function
VISIBLE
Return the ngrams generated from a sequence of items, as an iterator. For example:
-
nltk.util.bigrams
nltk.util.html#bigrams
ZopeInterfaceFunction
Function
VISIBLE
Return the bigrams generated from a sequence of items, as an iterator. For example:
-
nltk.util.trigrams
nltk.util.html#trigrams
ZopeInterfaceFunction
Function
VISIBLE
Return the trigrams generated from a sequence of items, as an iterator. For example:
-
nltk.util.everygrams
nltk.util.html#everygrams
ZopeInterfaceFunction
Function
VISIBLE
Returns all possible ngrams generated from a sequence of items, as an iterator.
-
nltk.util.skipgrams
nltk.util.html#skipgrams
ZopeInterfaceFunction
Function
VISIBLE
-
nltk.util.binary_search_file
nltk.util.html#binary_search_file
ZopeInterfaceFunction
Function
VISIBLE
Return the line from the file with first word key. Searches through a sorted file using the binary search algorithm.
-
nltk.util.set_proxy
nltk.util.html#set_proxy
ZopeInterfaceFunction
Function
VISIBLE
Set the HTTP proxy for Python to download through.
-
nltk.util.elementtree_indent
nltk.util.html#elementtree_indent
ZopeInterfaceFunction
Function
VISIBLE
Recursive function to indent an ElementTree._ElementInterface used for pretty printing. Run indent on elem and then output in the normal way.
-
nltk.util.choose
nltk.util.html#choose
ZopeInterfaceFunction
Function
VISIBLE
-
nltk.util.pairwise
nltk.util.html#pairwise
ZopeInterfaceFunction
Function
VISIBLE
s -> (s0,s1), (s1,s2), (s2, s3), ...
-
nltk.util.parallelize_preprocess
nltk.util.html#parallelize_preprocess
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.probability._NINF
nltk.probability.html#_NINF
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.probability.FreqDist
nltk.probability.FreqDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.FreqDist.__init__
nltk.probability.FreqDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.FreqDist._N
nltk.probability.FreqDist.html#_N
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.FreqDist.N
nltk.probability.FreqDist.html#N
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.FreqDist.__setitem__
nltk.probability.FreqDist.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Override Counter.__setitem__() to invalidate the cached N
-
nltk.probability.FreqDist.__delitem__
nltk.probability.FreqDist.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
Override Counter.__delitem__() to invalidate the cached N
-
nltk.probability.FreqDist.update
nltk.probability.FreqDist.html#update
ZopeInterfaceFunction
Method
VISIBLE
Override Counter.update() to invalidate the cached N
-
nltk.probability.FreqDist.setdefault
nltk.probability.FreqDist.html#setdefault
ZopeInterfaceFunction
Method
VISIBLE
Override Counter.setdefault() to invalidate the cached N
-
nltk.probability.FreqDist.B
nltk.probability.FreqDist.html#B
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.FreqDist.hapaxes
nltk.probability.FreqDist.html#hapaxes
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that occur once (hapax legomena)
-
nltk.probability.FreqDist.Nr
nltk.probability.FreqDist.html#Nr
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.FreqDist.r_Nr
nltk.probability.FreqDist.html#r_Nr
ZopeInterfaceFunction
Method
VISIBLE
Return the dictionary mapping r to Nr, the number of samples with frequency r, where Nr > 0.
-
nltk.probability.FreqDist._cumulative_frequencies
nltk.probability.FreqDist.html#_cumulative_frequencies
ZopeInterfaceFunction
Method
PRIVATE
Return the cumulative frequencies of the specified samples. If no samples are specified, all counts are returned, starting with the largest.
-
nltk.probability.FreqDist.freq
nltk.probability.FreqDist.html#freq
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.FreqDist.max
nltk.probability.FreqDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.FreqDist.plot
nltk.probability.FreqDist.html#plot
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.FreqDist.tabulate
nltk.probability.FreqDist.html#tabulate
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.FreqDist.copy
nltk.probability.FreqDist.html#copy
ZopeInterfaceFunction
Method
VISIBLE
Create a copy of this frequency distribution.
-
nltk.probability.FreqDist.__add__
nltk.probability.FreqDist.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Add counts from two counters.
-
nltk.probability.FreqDist.__sub__
nltk.probability.FreqDist.html#__sub__
ZopeInterfaceFunction
Method
VISIBLE
Subtract count, but keep only results with positive counts.
-
nltk.probability.FreqDist.__or__
nltk.probability.FreqDist.html#__or__
ZopeInterfaceFunction
Method
VISIBLE
Union is the maximum of value in either of the input counters.
-
nltk.probability.FreqDist.__and__
nltk.probability.FreqDist.html#__and__
ZopeInterfaceFunction
Method
VISIBLE
Intersection is the minimum of corresponding counts.
-
nltk.probability.FreqDist.__le__
nltk.probability.FreqDist.html#__le__
ZopeInterfaceFunction
Method
VISIBLE
Returns True if this frequency distribution is a subset of the other and for no key the value exceeds the value of the same key from the other frequency distribution.
-
nltk.probability.FreqDist.__ge__
nltk.probability.FreqDist.html#__ge__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.FreqDist.__lt__
nltk.probability.FreqDist.html#__lt__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.probability.FreqDist.__gt__
nltk.probability.FreqDist.html#__gt__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.probability.FreqDist.__repr__
nltk.probability.FreqDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this FreqDist.
-
nltk.probability.FreqDist.pprint
nltk.probability.FreqDist.html#pprint
ZopeInterfaceFunction
Method
VISIBLE
Print a string representation of this FreqDist to 'stream'
-
nltk.probability.FreqDist.pformat
nltk.probability.FreqDist.html#pformat
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this FreqDist.
-
nltk.probability.FreqDist.__str__
nltk.probability.FreqDist.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this FreqDist.
-
nltk.probability.FreqDist.__iter__
nltk.probability.FreqDist.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator which yields tokens ordered by frequency.
-
nltk.probability.ProbDistI
nltk.probability.ProbDistI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.ProbDistI.SUM_TO_ONE
nltk.probability.ProbDistI.html#SUM_TO_ONE
ZopeInterfaceAttribute
Class Variable
VISIBLE
True if the probabilities of the samples in this probability distribution will always sum to one.
-
nltk.probability.ProbDistI.__init__
nltk.probability.ProbDistI.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Classes inheriting from ProbDistI should implement __init__.
-
nltk.probability.ProbDistI.prob
nltk.probability.ProbDistI.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.ProbDistI.logprob
nltk.probability.ProbDistI.html#logprob
ZopeInterfaceFunction
Method
VISIBLE
Return the base 2 logarithm of the probability for a given sample.
-
nltk.probability.ProbDistI.max
nltk.probability.ProbDistI.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.ProbDistI.samples
nltk.probability.ProbDistI.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.ProbDistI.discount
nltk.probability.ProbDistI.html#discount
ZopeInterfaceFunction
Method
VISIBLE
Return the ratio by which counts are discounted on average: c*/c
-
nltk.probability.ProbDistI.generate
nltk.probability.ProbDistI.html#generate
ZopeInterfaceFunction
Method
VISIBLE
Return a randomly selected sample from this probability distribution. The probability of returning each sample samp is equal to self.prob(samp).
-
nltk.probability.UniformProbDist
nltk.probability.UniformProbDist.html
ZopeInterfaceClass
Class
VISIBLE
A probability distribution that assigns equal probability to each sample in a given set; and a zero probability to all other samples.
-
nltk.probability.UniformProbDist.__init__
nltk.probability.UniformProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new uniform probability distribution, that assigns equal probability to each sample in samples.
-
nltk.probability.UniformProbDist._sampleset
nltk.probability.UniformProbDist.html#_sampleset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.UniformProbDist._prob
nltk.probability.UniformProbDist.html#_prob
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.UniformProbDist._samples
nltk.probability.UniformProbDist.html#_samples
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.UniformProbDist.prob
nltk.probability.UniformProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.UniformProbDist.max
nltk.probability.UniformProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.UniformProbDist.samples
nltk.probability.UniformProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.UniformProbDist.__repr__
nltk.probability.UniformProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.RandomProbDist
nltk.probability.RandomProbDist.html
ZopeInterfaceClass
Class
VISIBLE
Generates a random probability distribution whereby each sample will be between 0 and 1 with equal probability (uniform random distribution. Also called a continuous uniform distribution).
-
nltk.probability.RandomProbDist.__init__
nltk.probability.RandomProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Classes inheriting from ProbDistI should implement __init__.
-
nltk.probability.RandomProbDist._probs
nltk.probability.RandomProbDist.html#_probs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.RandomProbDist._samples
nltk.probability.RandomProbDist.html#_samples
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.RandomProbDist.unirand
nltk.probability.RandomProbDist.html#unirand
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.probability.RandomProbDist.max
nltk.probability.RandomProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.RandomProbDist._max
nltk.probability.RandomProbDist.html#_max
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.RandomProbDist.prob
nltk.probability.RandomProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.RandomProbDist.samples
nltk.probability.RandomProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.RandomProbDist.__repr__
nltk.probability.RandomProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.DictionaryProbDist
nltk.probability.DictionaryProbDist.html
ZopeInterfaceClass
Class
VISIBLE
A probability distribution whose probabilities are directly specified by a given dictionary. The given dictionary maps samples to probabilities.
-
nltk.probability.DictionaryProbDist.__init__
nltk.probability.DictionaryProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.DictionaryProbDist._prob_dict
nltk.probability.DictionaryProbDist.html#_prob_dict
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.DictionaryProbDist._log
nltk.probability.DictionaryProbDist.html#_log
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.DictionaryProbDist.prob
nltk.probability.DictionaryProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.DictionaryProbDist.logprob
nltk.probability.DictionaryProbDist.html#logprob
ZopeInterfaceFunction
Method
VISIBLE
Return the base 2 logarithm of the probability for a given sample.
-
nltk.probability.DictionaryProbDist.max
nltk.probability.DictionaryProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.DictionaryProbDist._max
nltk.probability.DictionaryProbDist.html#_max
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.DictionaryProbDist.samples
nltk.probability.DictionaryProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.DictionaryProbDist.__repr__
nltk.probability.DictionaryProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.MLEProbDist
nltk.probability.MLEProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.MLEProbDist.__init__
nltk.probability.MLEProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Use the maximum likelihood estimate to create a probability distribution for the experiment used to generate freqdist.
-
nltk.probability.MLEProbDist._freqdist
nltk.probability.MLEProbDist.html#_freqdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.MLEProbDist.freqdist
nltk.probability.MLEProbDist.html#freqdist
ZopeInterfaceFunction
Method
VISIBLE
Return the frequency distribution that this probability distribution is based on.
-
nltk.probability.MLEProbDist.prob
nltk.probability.MLEProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.MLEProbDist.max
nltk.probability.MLEProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.MLEProbDist.samples
nltk.probability.MLEProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.MLEProbDist.__repr__
nltk.probability.MLEProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.probability.LidstoneProbDist
nltk.probability.LidstoneProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.LidstoneProbDist.SUM_TO_ONE
nltk.probability.LidstoneProbDist.html#SUM_TO_ONE
ZopeInterfaceAttribute
Class Variable
VISIBLE
True if the probabilities of the samples in this probability distribution will always sum to one.
-
nltk.probability.LidstoneProbDist.__init__
nltk.probability.LidstoneProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Use the Lidstone estimate to create a probability distribution for the experiment used to generate freqdist.
-
nltk.probability.LidstoneProbDist._freqdist
nltk.probability.LidstoneProbDist.html#_freqdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.LidstoneProbDist._gamma
nltk.probability.LidstoneProbDist.html#_gamma
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.LidstoneProbDist._N
nltk.probability.LidstoneProbDist.html#_N
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.LidstoneProbDist._bins
nltk.probability.LidstoneProbDist.html#_bins
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.LidstoneProbDist._divisor
nltk.probability.LidstoneProbDist.html#_divisor
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.LidstoneProbDist.freqdist
nltk.probability.LidstoneProbDist.html#freqdist
ZopeInterfaceFunction
Method
VISIBLE
Return the frequency distribution that this probability distribution is based on.
-
nltk.probability.LidstoneProbDist.prob
nltk.probability.LidstoneProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.LidstoneProbDist.max
nltk.probability.LidstoneProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.LidstoneProbDist.samples
nltk.probability.LidstoneProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.LidstoneProbDist.discount
nltk.probability.LidstoneProbDist.html#discount
ZopeInterfaceFunction
Method
VISIBLE
Return the ratio by which counts are discounted on average: c*/c
-
nltk.probability.LidstoneProbDist.__repr__
nltk.probability.LidstoneProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ProbDist.
-
nltk.probability.LaplaceProbDist
nltk.probability.LaplaceProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.LaplaceProbDist.__init__
nltk.probability.LaplaceProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Use the Laplace estimate to create a probability distribution for the experiment used to generate freqdist.
-
nltk.probability.LaplaceProbDist.__repr__
nltk.probability.LaplaceProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.probability.ELEProbDist
nltk.probability.ELEProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.ELEProbDist.__init__
nltk.probability.ELEProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Use the expected likelihood estimate to create a probability distribution for the experiment used to generate freqdist.
-
nltk.probability.ELEProbDist.__repr__
nltk.probability.ELEProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ProbDist.
-
nltk.probability.HeldoutProbDist
nltk.probability.HeldoutProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.HeldoutProbDist._estimate
nltk.probability.HeldoutProbDist.html#_estimate
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list mapping from r, the number of
times that a sample occurs in the base distribution, to the
probability estimate for that sample. _estimate[r] is
calculated by finding the average frequency in the heldout
distribution of all samples that occur r times in the base
distribution. In particular, _estimate[r] =
Tr[r]/(Nr[r].N).
-
nltk.probability.HeldoutProbDist._max_r
nltk.probability.HeldoutProbDist.html#_max_r
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The maximum number of times that any sample occurs
in the base distribution. _max_r is used to decide how
large _estimate must be.
-
nltk.probability.HeldoutProbDist.SUM_TO_ONE
nltk.probability.HeldoutProbDist.html#SUM_TO_ONE
ZopeInterfaceAttribute
Class Variable
VISIBLE
True if the probabilities of the samples in this probability distribution will always sum to one.
-
nltk.probability.HeldoutProbDist.__init__
nltk.probability.HeldoutProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Use the heldout estimate to create a probability distribution for the experiment used to generate base_fdist and heldout_fdist.
-
nltk.probability.HeldoutProbDist._base_fdist
nltk.probability.HeldoutProbDist.html#_base_fdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.HeldoutProbDist._heldout_fdist
nltk.probability.HeldoutProbDist.html#_heldout_fdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.HeldoutProbDist._calculate_Tr
nltk.probability.HeldoutProbDist.html#_calculate_Tr
ZopeInterfaceFunction
Method
PRIVATE
Return the list Tr, where Tr[r] is the total count in heldout_fdist for all samples that occur r times in base_fdist.
-
nltk.probability.HeldoutProbDist._calculate_estimate
nltk.probability.HeldoutProbDist.html#_calculate_estimate
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.probability.HeldoutProbDist.base_fdist
nltk.probability.HeldoutProbDist.html#base_fdist
ZopeInterfaceFunction
Method
VISIBLE
Return the base frequency distribution that this probability distribution is based on.
-
nltk.probability.HeldoutProbDist.heldout_fdist
nltk.probability.HeldoutProbDist.html#heldout_fdist
ZopeInterfaceFunction
Method
VISIBLE
Return the heldout frequency distribution that this probability distribution is based on.
-
nltk.probability.HeldoutProbDist.samples
nltk.probability.HeldoutProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.HeldoutProbDist.prob
nltk.probability.HeldoutProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.HeldoutProbDist.max
nltk.probability.HeldoutProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.HeldoutProbDist.discount
nltk.probability.HeldoutProbDist.html#discount
ZopeInterfaceFunction
Method
VISIBLE
Return the ratio by which counts are discounted on average: c*/c
-
nltk.probability.HeldoutProbDist.__repr__
nltk.probability.HeldoutProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.probability.CrossValidationProbDist
nltk.probability.CrossValidationProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.CrossValidationProbDist.SUM_TO_ONE
nltk.probability.CrossValidationProbDist.html#SUM_TO_ONE
ZopeInterfaceAttribute
Class Variable
VISIBLE
True if the probabilities of the samples in this probability distribution will always sum to one.
-
nltk.probability.CrossValidationProbDist.__init__
nltk.probability.CrossValidationProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Use the cross-validation estimate to create a probability distribution for the experiment used to generate freqdists.
-
nltk.probability.CrossValidationProbDist._freqdists
nltk.probability.CrossValidationProbDist.html#_freqdists
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.CrossValidationProbDist._heldout_probdists
nltk.probability.CrossValidationProbDist.html#_heldout_probdists
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.CrossValidationProbDist.freqdists
nltk.probability.CrossValidationProbDist.html#freqdists
ZopeInterfaceFunction
Method
VISIBLE
Return the list of frequency distributions that this ProbDist is based on.
-
nltk.probability.CrossValidationProbDist.samples
nltk.probability.CrossValidationProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.CrossValidationProbDist.prob
nltk.probability.CrossValidationProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.CrossValidationProbDist.discount
nltk.probability.CrossValidationProbDist.html#discount
ZopeInterfaceFunction
Method
VISIBLE
Return the ratio by which counts are discounted on average: c*/c
-
nltk.probability.CrossValidationProbDist.__repr__
nltk.probability.CrossValidationProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ProbDist.
-
nltk.probability.WittenBellProbDist
nltk.probability.WittenBellProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.WittenBellProbDist.__init__
nltk.probability.WittenBellProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.WittenBellProbDist._freqdist
nltk.probability.WittenBellProbDist.html#_freqdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.WittenBellProbDist._T
nltk.probability.WittenBellProbDist.html#_T
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.WittenBellProbDist._Z
nltk.probability.WittenBellProbDist.html#_Z
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.WittenBellProbDist._N
nltk.probability.WittenBellProbDist.html#_N
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.WittenBellProbDist._P0
nltk.probability.WittenBellProbDist.html#_P0
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.WittenBellProbDist.prob
nltk.probability.WittenBellProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.WittenBellProbDist.max
nltk.probability.WittenBellProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.WittenBellProbDist.samples
nltk.probability.WittenBellProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.WittenBellProbDist.freqdist
nltk.probability.WittenBellProbDist.html#freqdist
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.WittenBellProbDist.discount
nltk.probability.WittenBellProbDist.html#discount
ZopeInterfaceFunction
Method
VISIBLE
Return the ratio by which counts are discounted on average: c*/c
-
nltk.probability.WittenBellProbDist.__repr__
nltk.probability.WittenBellProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ProbDist.
-
nltk.probability.SimpleGoodTuringProbDist
nltk.probability.SimpleGoodTuringProbDist.html
ZopeInterfaceClass
Class
VISIBLE
SimpleGoodTuring ProbDist approximates from frequency to frequency of frequency into a linear line under log space by linear regression. Details of Simple Good-Turing algorithm can be found in:
-
nltk.probability.SimpleGoodTuringProbDist.SUM_TO_ONE
nltk.probability.SimpleGoodTuringProbDist.html#SUM_TO_ONE
ZopeInterfaceAttribute
Class Variable
VISIBLE
True if the probabilities of the samples in this probability distribution will always sum to one.
-
nltk.probability.SimpleGoodTuringProbDist.__init__
nltk.probability.SimpleGoodTuringProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.SimpleGoodTuringProbDist._freqdist
nltk.probability.SimpleGoodTuringProbDist.html#_freqdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist._bins
nltk.probability.SimpleGoodTuringProbDist.html#_bins
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist._r_Nr_non_zero
nltk.probability.SimpleGoodTuringProbDist.html#_r_Nr_non_zero
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist._r_Nr
nltk.probability.SimpleGoodTuringProbDist.html#_r_Nr
ZopeInterfaceFunction
Method
PRIVATE
Split the frequency distribution in two list (r, Nr), where Nr(r) > 0
-
nltk.probability.SimpleGoodTuringProbDist.find_best_fit
nltk.probability.SimpleGoodTuringProbDist.html#find_best_fit
ZopeInterfaceFunction
Method
VISIBLE
Use simple linear regression to tune parameters self._slope and self._intercept in the log-log space based on count and Nr(count) (Work in log space to avoid floating point underflow.)
-
nltk.probability.SimpleGoodTuringProbDist._slope
nltk.probability.SimpleGoodTuringProbDist.html#_slope
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist._intercept
nltk.probability.SimpleGoodTuringProbDist.html#_intercept
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist._switch
nltk.probability.SimpleGoodTuringProbDist.html#_switch
ZopeInterfaceFunction
Method
PRIVATE
Calculate the r frontier where we must switch from Nr to Sr when estimating E[Nr].
-
nltk.probability.SimpleGoodTuringProbDist._switch_at
nltk.probability.SimpleGoodTuringProbDist.html#_switch_at
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist._variance
nltk.probability.SimpleGoodTuringProbDist.html#_variance
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist._renormalize
nltk.probability.SimpleGoodTuringProbDist.html#_renormalize
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.probability.SimpleGoodTuringProbDist._renormal
nltk.probability.SimpleGoodTuringProbDist.html#_renormal
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist.smoothedNr
nltk.probability.SimpleGoodTuringProbDist.html#smoothedNr
ZopeInterfaceFunction
Method
VISIBLE
Return the number of samples with count r.
-
nltk.probability.SimpleGoodTuringProbDist.prob
nltk.probability.SimpleGoodTuringProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the sample's probability.
-
nltk.probability.SimpleGoodTuringProbDist._prob_measure
nltk.probability.SimpleGoodTuringProbDist.html#_prob_measure
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist.check
nltk.probability.SimpleGoodTuringProbDist.html#check
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist.discount
nltk.probability.SimpleGoodTuringProbDist.html#discount
ZopeInterfaceFunction
Method
VISIBLE
This function returns the total mass of probability transfers from the seen samples to the unseen samples.
-
nltk.probability.SimpleGoodTuringProbDist.max
nltk.probability.SimpleGoodTuringProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.SimpleGoodTuringProbDist.samples
nltk.probability.SimpleGoodTuringProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.SimpleGoodTuringProbDist.freqdist
nltk.probability.SimpleGoodTuringProbDist.html#freqdist
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.SimpleGoodTuringProbDist.__repr__
nltk.probability.SimpleGoodTuringProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ProbDist.
-
nltk.probability.MutableProbDist
nltk.probability.MutableProbDist.html
ZopeInterfaceClass
Class
VISIBLE
An mutable probdist where the probabilities may be easily modified. This simply copies an existing probdist, storing the probability values in a mutable dictionary and providing an update method.
-
nltk.probability.MutableProbDist.__init__
nltk.probability.MutableProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates the mutable probdist based on the given prob_dist and using the list of samples given. These values are stored as log probabilities if the store_logs flag is set.
-
nltk.probability.MutableProbDist._samples
nltk.probability.MutableProbDist.html#_samples
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.MutableProbDist._sample_dict
nltk.probability.MutableProbDist.html#_sample_dict
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.MutableProbDist._data
nltk.probability.MutableProbDist.html#_data
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.MutableProbDist._logs
nltk.probability.MutableProbDist.html#_logs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.MutableProbDist.max
nltk.probability.MutableProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.MutableProbDist.samples
nltk.probability.MutableProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.MutableProbDist.prob
nltk.probability.MutableProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.MutableProbDist.logprob
nltk.probability.MutableProbDist.html#logprob
ZopeInterfaceFunction
Method
VISIBLE
Return the base 2 logarithm of the probability for a given sample.
-
nltk.probability.MutableProbDist.update
nltk.probability.MutableProbDist.html#update
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.KneserNeyProbDist
nltk.probability.KneserNeyProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.KneserNeyProbDist.__init__
nltk.probability.KneserNeyProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.KneserNeyProbDist._bins
nltk.probability.KneserNeyProbDist.html#_bins
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.KneserNeyProbDist._D
nltk.probability.KneserNeyProbDist.html#_D
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.KneserNeyProbDist._cache
nltk.probability.KneserNeyProbDist.html#_cache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.KneserNeyProbDist._bigrams
nltk.probability.KneserNeyProbDist.html#_bigrams
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.KneserNeyProbDist._trigrams
nltk.probability.KneserNeyProbDist.html#_trigrams
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.KneserNeyProbDist._wordtypes_after
nltk.probability.KneserNeyProbDist.html#_wordtypes_after
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.KneserNeyProbDist._trigrams_contain
nltk.probability.KneserNeyProbDist.html#_trigrams_contain
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.KneserNeyProbDist._wordtypes_before
nltk.probability.KneserNeyProbDist.html#_wordtypes_before
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.KneserNeyProbDist.prob
nltk.probability.KneserNeyProbDist.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].
-
nltk.probability.KneserNeyProbDist.discount
nltk.probability.KneserNeyProbDist.html#discount
ZopeInterfaceFunction
Method
VISIBLE
Return the value by which counts are discounted. By default set to 0.75.
-
nltk.probability.KneserNeyProbDist.set_discount
nltk.probability.KneserNeyProbDist.html#set_discount
ZopeInterfaceFunction
Method
VISIBLE
Set the value by which counts are discounted to the value of discount.
-
nltk.probability.KneserNeyProbDist.samples
nltk.probability.KneserNeyProbDist.html#samples
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all samples that have nonzero probabilities. Use prob to find the probability of each sample.
-
nltk.probability.KneserNeyProbDist.max
nltk.probability.KneserNeyProbDist.html#max
ZopeInterfaceFunction
Method
VISIBLE
Return the sample with the greatest probability. If two or more samples have the same probability, return one of them; which sample is returned is undefined.
-
nltk.probability.KneserNeyProbDist.__repr__
nltk.probability.KneserNeyProbDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ProbDist
-
nltk.probability.log_likelihood
nltk.probability.html#log_likelihood
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.probability.entropy
nltk.probability.html#entropy
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.probability.ConditionalFreqDist
nltk.probability.ConditionalFreqDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.ConditionalFreqDist.__init__
nltk.probability.ConditionalFreqDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new empty conditional frequency distribution. In particular, the count for every sample, under every condition, is zero.
-
nltk.probability.ConditionalFreqDist.__reduce__
nltk.probability.ConditionalFreqDist.html#__reduce__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.ConditionalFreqDist.conditions
nltk.probability.ConditionalFreqDist.html#conditions
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.probability.ConditionalFreqDist.N
nltk.probability.ConditionalFreqDist.html#N
ZopeInterfaceFunction
Method
VISIBLE
Return the total number of sample outcomes that have been recorded by this ConditionalFreqDist.
-
nltk.probability.ConditionalFreqDist.plot
nltk.probability.ConditionalFreqDist.html#plot
ZopeInterfaceFunction
Method
VISIBLE
Plot the given samples from the conditional frequency distribution. For a cumulative plot, specify cumulative=True. (Requires Matplotlib to be installed.)
-
nltk.probability.ConditionalFreqDist.tabulate
nltk.probability.ConditionalFreqDist.html#tabulate
ZopeInterfaceFunction
Method
VISIBLE
Tabulate the given samples from the conditional frequency distribution.
-
nltk.probability.ConditionalFreqDist.__add__
nltk.probability.ConditionalFreqDist.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Add counts from two ConditionalFreqDists.
-
nltk.probability.ConditionalFreqDist.__sub__
nltk.probability.ConditionalFreqDist.html#__sub__
ZopeInterfaceFunction
Method
VISIBLE
Subtract count, but keep only results with positive counts.
-
nltk.probability.ConditionalFreqDist.__or__
nltk.probability.ConditionalFreqDist.html#__or__
ZopeInterfaceFunction
Method
VISIBLE
Union is the maximum of value in either of the input counters.
-
nltk.probability.ConditionalFreqDist.__and__
nltk.probability.ConditionalFreqDist.html#__and__
ZopeInterfaceFunction
Method
VISIBLE
Intersection is the minimum of corresponding counts.
-
nltk.probability.ConditionalFreqDist.__le__
nltk.probability.ConditionalFreqDist.html#__le__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.ConditionalFreqDist.__lt__
nltk.probability.ConditionalFreqDist.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.ConditionalFreqDist.__ge__
nltk.probability.ConditionalFreqDist.html#__ge__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.ConditionalFreqDist.__gt__
nltk.probability.ConditionalFreqDist.html#__gt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.ConditionalFreqDist.__repr__
nltk.probability.ConditionalFreqDist.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ConditionalFreqDist.
-
nltk.probability.ConditionalProbDistI
nltk.probability.ConditionalProbDistI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.ConditionalProbDistI.__init__
nltk.probability.ConditionalProbDistI.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Classes inheriting from ConditionalProbDistI should implement __init__.
-
nltk.probability.ConditionalProbDistI.conditions
nltk.probability.ConditionalProbDistI.html#conditions
ZopeInterfaceFunction
Method
VISIBLE
Return a list of the conditions that are represented by this ConditionalProbDist. Use the indexing operator to access the probability distribution for a given condition.
-
nltk.probability.ConditionalProbDistI.__repr__
nltk.probability.ConditionalProbDistI.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ConditionalProbDist.
-
nltk.probability.ConditionalProbDist
nltk.probability.ConditionalProbDist.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.ConditionalProbDist.__init__
nltk.probability.ConditionalProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new conditional probability distribution, based on the given conditional frequency distribution and ProbDist factory.
-
nltk.probability.ConditionalProbDist._probdist_factory
nltk.probability.ConditionalProbDist.html#_probdist_factory
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.ConditionalProbDist._factory_args
nltk.probability.ConditionalProbDist.html#_factory_args
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.ConditionalProbDist._factory_kw_args
nltk.probability.ConditionalProbDist.html#_factory_kw_args
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.ConditionalProbDist.__missing__
nltk.probability.ConditionalProbDist.html#__missing__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability.DictionaryConditionalProbDist
nltk.probability.DictionaryConditionalProbDist.html
ZopeInterfaceClass
Class
VISIBLE
An alternative ConditionalProbDist that simply wraps a dictionary of ProbDists rather than creating these from FreqDists.
-
nltk.probability.DictionaryConditionalProbDist.__init__
nltk.probability.DictionaryConditionalProbDist.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.probability.DictionaryConditionalProbDist.__missing__
nltk.probability.DictionaryConditionalProbDist.html#__missing__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.probability._ADD_LOGS_MAX_DIFF
nltk.probability.html#_ADD_LOGS_MAX_DIFF
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.probability.add_logs
nltk.probability.html#add_logs
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.probability.sum_logs
nltk.probability.html#sum_logs
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.probability.ProbabilisticMixIn
nltk.probability.ProbabilisticMixIn.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.probability.ProbabilisticMixIn.__init__
nltk.probability.ProbabilisticMixIn.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize this object's probability. This initializer should be called by subclass constructors. prob should generally be the first argument for those constructors.
-
nltk.probability.ProbabilisticMixIn.__prob
nltk.probability.ProbabilisticMixIn.html#__prob
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.ProbabilisticMixIn.__logprob
nltk.probability.ProbabilisticMixIn.html#__logprob
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.probability.ProbabilisticMixIn.set_prob
nltk.probability.ProbabilisticMixIn.html#set_prob
ZopeInterfaceFunction
Method
VISIBLE
Set the probability associated with this object to prob.
-
nltk.probability.ProbabilisticMixIn.set_logprob
nltk.probability.ProbabilisticMixIn.html#set_logprob
ZopeInterfaceFunction
Method
VISIBLE
Set the log probability associated with this object to logprob. I.e., set the probability associated with this object to 2**(logprob).
-
nltk.probability.ProbabilisticMixIn.prob
nltk.probability.ProbabilisticMixIn.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Return the probability associated with this object.
-
nltk.probability.ProbabilisticMixIn.logprob
nltk.probability.ProbabilisticMixIn.html#logprob
ZopeInterfaceFunction
Method
VISIBLE
Return log(p), where p is the probability associated with this object.
-
nltk.probability.ImmutableProbabilisticMixIn
nltk.probability.ImmutableProbabilisticMixIn.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.probability.ImmutableProbabilisticMixIn.set_prob
nltk.probability.ImmutableProbabilisticMixIn.html#set_prob
ZopeInterfaceFunction
Method
VISIBLE
Set the probability associated with this object to prob.
-
nltk.probability.ImmutableProbabilisticMixIn.set_logprob
nltk.probability.ImmutableProbabilisticMixIn.html#set_logprob
ZopeInterfaceFunction
Method
VISIBLE
Set the log probability associated with this object to logprob. I.e., set the probability associated with this object to 2**(logprob).
-
nltk.probability._get_kwarg
nltk.probability.html#_get_kwarg
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.probability._create_rand_fdist
nltk.probability.html#_create_rand_fdist
ZopeInterfaceFunction
Function
PRIVATE
Create a new frequency distribution, with random samples. The samples are numbers from 1 to numsamples, and are generated by summing two numbers, each of which has a uniform distribution.
-
nltk.probability._create_sum_pdist
nltk.probability.html#_create_sum_pdist
ZopeInterfaceFunction
Function
PRIVATE
Return the true probability distribution for the experiment _create_rand_fdist(numsamples, x).
-
nltk.probability.demo
nltk.probability.html#demo
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.probability.gt_demo
nltk.probability.html#gt_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.logic.APP
nltk.sem.logic.html#APP
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.logic._counter
nltk.sem.logic.html#_counter
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.sem.logic.Tokens
nltk.sem.logic.Tokens.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.LAMBDA
nltk.sem.logic.Tokens.html#LAMBDA
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.LAMBDA_LIST
nltk.sem.logic.Tokens.html#LAMBDA_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.EXISTS
nltk.sem.logic.Tokens.html#EXISTS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.EXISTS_LIST
nltk.sem.logic.Tokens.html#EXISTS_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.ALL
nltk.sem.logic.Tokens.html#ALL
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.ALL_LIST
nltk.sem.logic.Tokens.html#ALL_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.DOT
nltk.sem.logic.Tokens.html#DOT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.OPEN
nltk.sem.logic.Tokens.html#OPEN
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.CLOSE
nltk.sem.logic.Tokens.html#CLOSE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.COMMA
nltk.sem.logic.Tokens.html#COMMA
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.NOT
nltk.sem.logic.Tokens.html#NOT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.NOT_LIST
nltk.sem.logic.Tokens.html#NOT_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.AND
nltk.sem.logic.Tokens.html#AND
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.AND_LIST
nltk.sem.logic.Tokens.html#AND_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.OR
nltk.sem.logic.Tokens.html#OR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.OR_LIST
nltk.sem.logic.Tokens.html#OR_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.IMP
nltk.sem.logic.Tokens.html#IMP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.IMP_LIST
nltk.sem.logic.Tokens.html#IMP_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.IFF
nltk.sem.logic.Tokens.html#IFF
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.IFF_LIST
nltk.sem.logic.Tokens.html#IFF_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.EQ
nltk.sem.logic.Tokens.html#EQ
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.EQ_LIST
nltk.sem.logic.Tokens.html#EQ_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.NEQ
nltk.sem.logic.Tokens.html#NEQ
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.NEQ_LIST
nltk.sem.logic.Tokens.html#NEQ_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.BINOPS
nltk.sem.logic.Tokens.html#BINOPS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.QUANTS
nltk.sem.logic.Tokens.html#QUANTS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.PUNCT
nltk.sem.logic.Tokens.html#PUNCT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.TOKENS
nltk.sem.logic.Tokens.html#TOKENS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Tokens.SYMBOLS
nltk.sem.logic.Tokens.html#SYMBOLS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.boolean_ops
nltk.sem.logic.html#boolean_ops
ZopeInterfaceFunction
Function
VISIBLE
Boolean operators
-
nltk.sem.logic.equality_preds
nltk.sem.logic.html#equality_preds
ZopeInterfaceFunction
Function
VISIBLE
Equality predicates
-
nltk.sem.logic.binding_ops
nltk.sem.logic.html#binding_ops
ZopeInterfaceFunction
Function
VISIBLE
Binding operators
-
nltk.sem.logic.LogicParser
nltk.sem.logic.LogicParser.html
ZopeInterfaceClass
Class
VISIBLE
A lambda calculus expression parser.
-
nltk.sem.logic.LogicParser.__init__
nltk.sem.logic.LogicParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.LogicParser._currentIndex
nltk.sem.logic.LogicParser.html#_currentIndex
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.logic.LogicParser._buffer
nltk.sem.logic.LogicParser.html#_buffer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.logic.LogicParser.type_check
nltk.sem.logic.LogicParser.html#type_check
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.sem.logic.LogicParser.quote_chars
nltk.sem.logic.LogicParser.html#quote_chars
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.operator_precedence
nltk.sem.logic.LogicParser.html#operator_precedence
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.right_associated_operations
nltk.sem.logic.LogicParser.html#right_associated_operations
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.parse
nltk.sem.logic.LogicParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Parse the expression.
-
nltk.sem.logic.LogicParser.process
nltk.sem.logic.LogicParser.html#process
ZopeInterfaceFunction
Method
VISIBLE
Split the data into tokens
-
nltk.sem.logic.LogicParser.process_quoted_token
nltk.sem.logic.LogicParser.html#process_quoted_token
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.get_all_symbols
nltk.sem.logic.LogicParser.html#get_all_symbols
ZopeInterfaceFunction
Method
VISIBLE
This method exists to be overridden
-
nltk.sem.logic.LogicParser.inRange
nltk.sem.logic.LogicParser.html#inRange
ZopeInterfaceFunction
Method
VISIBLE
Return TRUE if the given location is within the buffer
-
nltk.sem.logic.LogicParser.token
nltk.sem.logic.LogicParser.html#token
ZopeInterfaceFunction
Method
VISIBLE
Get the next waiting token. If a location is given, then return the token at currentIndex+location without advancing currentIndex; setting it gives lookahead/lookback capability.
-
nltk.sem.logic.LogicParser.isvariable
nltk.sem.logic.LogicParser.html#isvariable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.process_next_expression
nltk.sem.logic.LogicParser.html#process_next_expression
ZopeInterfaceFunction
Method
VISIBLE
Parse the next complete expression from the stream and return it.
-
nltk.sem.logic.LogicParser.handle
nltk.sem.logic.LogicParser.html#handle
ZopeInterfaceFunction
Method
VISIBLE
This method is intended to be overridden for logics that use different operators or expressions
-
nltk.sem.logic.LogicParser.attempt_adjuncts
nltk.sem.logic.LogicParser.html#attempt_adjuncts
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.handle_negation
nltk.sem.logic.LogicParser.html#handle_negation
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.make_NegatedExpression
nltk.sem.logic.LogicParser.html#make_NegatedExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.handle_variable
nltk.sem.logic.LogicParser.html#handle_variable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.get_next_token_variable
nltk.sem.logic.LogicParser.html#get_next_token_variable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.handle_lambda
nltk.sem.logic.LogicParser.html#handle_lambda
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.handle_quant
nltk.sem.logic.LogicParser.html#handle_quant
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.get_QuantifiedExpression_factory
nltk.sem.logic.LogicParser.html#get_QuantifiedExpression_factory
ZopeInterfaceFunction
Method
VISIBLE
This method serves as a hook for other logic parsers that have different quantifiers
-
nltk.sem.logic.LogicParser.make_QuanifiedExpression
nltk.sem.logic.LogicParser.html#make_QuanifiedExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.handle_open
nltk.sem.logic.LogicParser.html#handle_open
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.attempt_EqualityExpression
nltk.sem.logic.LogicParser.html#attempt_EqualityExpression
ZopeInterfaceFunction
Method
VISIBLE
Attempt to make an equality expression. If the next token is an equality operator, then an EqualityExpression will be returned. Otherwise, the parameter will be returned.
-
nltk.sem.logic.LogicParser.make_EqualityExpression
nltk.sem.logic.LogicParser.html#make_EqualityExpression
ZopeInterfaceFunction
Method
VISIBLE
This method serves as a hook for other logic parsers that have different equality expression classes
-
nltk.sem.logic.LogicParser.attempt_BooleanExpression
nltk.sem.logic.LogicParser.html#attempt_BooleanExpression
ZopeInterfaceFunction
Method
VISIBLE
Attempt to make a boolean expression. If the next token is a boolean operator, then a BooleanExpression will be returned. Otherwise, the parameter will be returned.
-
nltk.sem.logic.LogicParser.get_BooleanExpression_factory
nltk.sem.logic.LogicParser.html#get_BooleanExpression_factory
ZopeInterfaceFunction
Method
VISIBLE
This method serves as a hook for other logic parsers that have different boolean operators
-
nltk.sem.logic.LogicParser.make_BooleanExpression
nltk.sem.logic.LogicParser.html#make_BooleanExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.attempt_ApplicationExpression
nltk.sem.logic.LogicParser.html#attempt_ApplicationExpression
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.logic.LogicParser.make_ApplicationExpression
nltk.sem.logic.LogicParser.html#make_ApplicationExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.make_VariableExpression
nltk.sem.logic.LogicParser.html#make_VariableExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.make_LambdaExpression
nltk.sem.logic.LogicParser.html#make_LambdaExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.has_priority
nltk.sem.logic.LogicParser.html#has_priority
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.assertNextToken
nltk.sem.logic.LogicParser.html#assertNextToken
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.assertToken
nltk.sem.logic.LogicParser.html#assertToken
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicParser.__repr__
nltk.sem.logic.LogicParser.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.read_logic
nltk.sem.logic.html#read_logic
ZopeInterfaceFunction
Function
VISIBLE
Convert a file of First Order Formulas into a list of {Expression}s.
-
nltk.sem.logic.Variable
nltk.sem.logic.Variable.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 1/8 method documented
-
nltk.sem.logic.Variable.__init__
nltk.sem.logic.Variable.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.Variable.name
nltk.sem.logic.Variable.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.Variable.__eq__
nltk.sem.logic.Variable.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Variable.__ne__
nltk.sem.logic.Variable.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Variable.__lt__
nltk.sem.logic.Variable.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Variable.substitute_bindings
nltk.sem.logic.Variable.html#substitute_bindings
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Variable.__hash__
nltk.sem.logic.Variable.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Variable.__str__
nltk.sem.logic.Variable.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Variable.__repr__
nltk.sem.logic.Variable.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.unique_variable
nltk.sem.logic.html#unique_variable
ZopeInterfaceFunction
Function
VISIBLE
Return a new, unique variable.
-
nltk.sem.logic.skolem_function
nltk.sem.logic.html#skolem_function
ZopeInterfaceFunction
Function
VISIBLE
Return a skolem function over the variables in univ_scope param univ_scope
-
nltk.sem.logic.Type
nltk.sem.logic.Type.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.Type.__repr__
nltk.sem.logic.Type.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Type.__hash__
nltk.sem.logic.Type.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Type.fromstring
nltk.sem.logic.Type.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType
nltk.sem.logic.ComplexType.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.__init__
nltk.sem.logic.ComplexType.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.first
nltk.sem.logic.ComplexType.html#first
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.second
nltk.sem.logic.ComplexType.html#second
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.__eq__
nltk.sem.logic.ComplexType.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.__ne__
nltk.sem.logic.ComplexType.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.matches
nltk.sem.logic.ComplexType.html#matches
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.resolve
nltk.sem.logic.ComplexType.html#resolve
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.__str__
nltk.sem.logic.ComplexType.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ComplexType.str
nltk.sem.logic.ComplexType.html#str
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BasicType
nltk.sem.logic.BasicType.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.BasicType.__eq__
nltk.sem.logic.BasicType.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BasicType.__ne__
nltk.sem.logic.BasicType.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BasicType.matches
nltk.sem.logic.BasicType.html#matches
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BasicType.resolve
nltk.sem.logic.BasicType.html#resolve
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.EntityType
nltk.sem.logic.EntityType.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.EntityType.__str__
nltk.sem.logic.EntityType.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.EntityType.str
nltk.sem.logic.EntityType.html#str
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.TruthValueType
nltk.sem.logic.TruthValueType.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.TruthValueType.__str__
nltk.sem.logic.TruthValueType.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.TruthValueType.str
nltk.sem.logic.TruthValueType.html#str
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.EventType
nltk.sem.logic.EventType.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.EventType.__str__
nltk.sem.logic.EventType.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.EventType.str
nltk.sem.logic.EventType.html#str
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType
nltk.sem.logic.AnyType.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.__init__
nltk.sem.logic.AnyType.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.first
nltk.sem.logic.AnyType.html#first
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.second
nltk.sem.logic.AnyType.html#second
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.__eq__
nltk.sem.logic.AnyType.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.__ne__
nltk.sem.logic.AnyType.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.matches
nltk.sem.logic.AnyType.html#matches
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.resolve
nltk.sem.logic.AnyType.html#resolve
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.__str__
nltk.sem.logic.AnyType.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AnyType.str
nltk.sem.logic.AnyType.html#str
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.TRUTH_TYPE
nltk.sem.logic.html#TRUTH_TYPE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.logic.ENTITY_TYPE
nltk.sem.logic.html#ENTITY_TYPE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.logic.EVENT_TYPE
nltk.sem.logic.html#EVENT_TYPE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.logic.ANY_TYPE
nltk.sem.logic.html#ANY_TYPE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.logic.read_type
nltk.sem.logic.html#read_type
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.logic.TypeException
nltk.sem.logic.TypeException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.TypeException.__init__
nltk.sem.logic.TypeException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.InconsistentTypeHierarchyException
nltk.sem.logic.InconsistentTypeHierarchyException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.InconsistentTypeHierarchyException.__init__
nltk.sem.logic.InconsistentTypeHierarchyException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.TypeResolutionException
nltk.sem.logic.TypeResolutionException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.TypeResolutionException.__init__
nltk.sem.logic.TypeResolutionException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.IllegalTypeException
nltk.sem.logic.IllegalTypeException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.IllegalTypeException.__init__
nltk.sem.logic.IllegalTypeException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.typecheck
nltk.sem.logic.html#typecheck
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.sem.logic.SubstituteBindingsI
nltk.sem.logic.SubstituteBindingsI.html
ZopeInterfaceClass
Class
VISIBLE
An interface for classes that can perform substitutions for variables.
-
nltk.sem.logic.SubstituteBindingsI.substitute_bindings
nltk.sem.logic.SubstituteBindingsI.html#substitute_bindings
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.logic.SubstituteBindingsI.variables
nltk.sem.logic.SubstituteBindingsI.html#variables
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.Expression
nltk.sem.logic.Expression.html
ZopeInterfaceClass
Class
VISIBLE
This is the base abstract object for all logical expressions
-
nltk.sem.logic.Expression._logic_parser
nltk.sem.logic.Expression.html#_logic_parser
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.sem.logic.Expression._type_checking_logic_parser
nltk.sem.logic.Expression.html#_type_checking_logic_parser
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.sem.logic.Expression.fromstring
nltk.sem.logic.Expression.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.__call__
nltk.sem.logic.Expression.html#__call__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.applyto
nltk.sem.logic.Expression.html#applyto
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.__neg__
nltk.sem.logic.Expression.html#__neg__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.negate
nltk.sem.logic.Expression.html#negate
ZopeInterfaceFunction
Method
VISIBLE
If this is a negated expression, remove the negation. Otherwise add a negation.
-
nltk.sem.logic.Expression.__and__
nltk.sem.logic.Expression.html#__and__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.__or__
nltk.sem.logic.Expression.html#__or__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.__gt__
nltk.sem.logic.Expression.html#__gt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.__lt__
nltk.sem.logic.Expression.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.__eq__
nltk.sem.logic.Expression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.__ne__
nltk.sem.logic.Expression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.equiv
nltk.sem.logic.Expression.html#equiv
ZopeInterfaceFunction
Method
VISIBLE
Check for logical equivalence. Pass the expression (self <-> other) to the theorem prover. If the prover says it is valid, then the self and other are equal.
-
nltk.sem.logic.Expression.__hash__
nltk.sem.logic.Expression.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.substitute_bindings
nltk.sem.logic.Expression.html#substitute_bindings
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.logic.Expression.typecheck
nltk.sem.logic.Expression.html#typecheck
ZopeInterfaceFunction
Method
VISIBLE
Infer and check types. Raise exceptions if necessary.
-
nltk.sem.logic.Expression.findtype
nltk.sem.logic.Expression.html#findtype
ZopeInterfaceFunction
Method
VISIBLE
Find the type of the given variable as it is used in this expression. For example, finding the type of "P" in "P(x) & Q(x,y)" yields "<e,t>"
-
nltk.sem.logic.Expression._set_type
nltk.sem.logic.Expression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
Set the type of this expression to be the given type. Raise type exceptions where applicable.
-
nltk.sem.logic.Expression.replace
nltk.sem.logic.Expression.html#replace
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.logic.Expression.normalize
nltk.sem.logic.Expression.html#normalize
ZopeInterfaceFunction
Method
VISIBLE
Rename auto-generated unique variables
-
nltk.sem.logic.Expression.visit
nltk.sem.logic.Expression.html#visit
ZopeInterfaceFunction
Method
VISIBLE
Recursively visit subexpressions. Apply 'function' to each subexpression and pass the result of each function application to the 'combinator' for aggregation:
-
nltk.sem.logic.Expression.visit_structured
nltk.sem.logic.Expression.html#visit_structured
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.logic.Expression.__repr__
nltk.sem.logic.Expression.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.__str__
nltk.sem.logic.Expression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.Expression.variables
nltk.sem.logic.Expression.html#variables
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.logic.Expression.free
nltk.sem.logic.Expression.html#free
ZopeInterfaceFunction
Method
VISIBLE
Return a set of all the free (non-bound) variables. This includes both individual and predicate variables, but not constants. :return: set of Variable objects
-
nltk.sem.logic.Expression.constants
nltk.sem.logic.Expression.html#constants
ZopeInterfaceFunction
Method
VISIBLE
Return a set of individual constants (non-predicates). :return: set of Variable objects
-
nltk.sem.logic.Expression.predicates
nltk.sem.logic.Expression.html#predicates
ZopeInterfaceFunction
Method
VISIBLE
Return a set of predicates (constants, not variables). :return: set of Variable objects
-
nltk.sem.logic.Expression.simplify
nltk.sem.logic.Expression.html#simplify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.Expression.make_VariableExpression
nltk.sem.logic.Expression.html#make_VariableExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ApplicationExpression
nltk.sem.logic.ApplicationExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class is used to represent two related types of logical expressions.
-
nltk.sem.logic.ApplicationExpression.__init__
nltk.sem.logic.ApplicationExpression.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.ApplicationExpression.function
nltk.sem.logic.ApplicationExpression.html#function
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.ApplicationExpression.argument
nltk.sem.logic.ApplicationExpression.html#argument
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.ApplicationExpression.simplify
nltk.sem.logic.ApplicationExpression.html#simplify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.ApplicationExpression.type
nltk.sem.logic.ApplicationExpression.html#type
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.sem.logic.ApplicationExpression._set_type
nltk.sem.logic.ApplicationExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.ApplicationExpression.findtype
nltk.sem.logic.ApplicationExpression.html#findtype
ZopeInterfaceFunction
Method
VISIBLE
:see Expression.findtype()
-
nltk.sem.logic.ApplicationExpression.constants
nltk.sem.logic.ApplicationExpression.html#constants
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.ApplicationExpression.predicates
nltk.sem.logic.ApplicationExpression.html#predicates
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.ApplicationExpression.visit
nltk.sem.logic.ApplicationExpression.html#visit
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.ApplicationExpression.__eq__
nltk.sem.logic.ApplicationExpression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ApplicationExpression.__ne__
nltk.sem.logic.ApplicationExpression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ApplicationExpression.__str__
nltk.sem.logic.ApplicationExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ApplicationExpression.uncurry
nltk.sem.logic.ApplicationExpression.html#uncurry
ZopeInterfaceFunction
Method
VISIBLE
Uncurry this application expression
-
nltk.sem.logic.ApplicationExpression.pred
nltk.sem.logic.ApplicationExpression.html#pred
ZopeInterfaceAttribute
Property
VISIBLE
Return uncurried base-function. If this is an atom, then the result will be a variable expression. Otherwise, it will be a lambda expression.
-
nltk.sem.logic.ApplicationExpression.args
nltk.sem.logic.ApplicationExpression.html#args
ZopeInterfaceAttribute
Property
VISIBLE
Return uncurried arg-list
-
nltk.sem.logic.ApplicationExpression.is_atom
nltk.sem.logic.ApplicationExpression.html#is_atom
ZopeInterfaceFunction
Method
VISIBLE
Is this expression an atom (as opposed to a lambda expression applied to a term)?
-
nltk.sem.logic.AbstractVariableExpression
nltk.sem.logic.AbstractVariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents a variable to be used as a predicate or entity
-
nltk.sem.logic.AbstractVariableExpression.__init__
nltk.sem.logic.AbstractVariableExpression.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.AbstractVariableExpression.variable
nltk.sem.logic.AbstractVariableExpression.html#variable
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.AbstractVariableExpression.simplify
nltk.sem.logic.AbstractVariableExpression.html#simplify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.AbstractVariableExpression.replace
nltk.sem.logic.AbstractVariableExpression.html#replace
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.AbstractVariableExpression._set_type
nltk.sem.logic.AbstractVariableExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.AbstractVariableExpression.findtype
nltk.sem.logic.AbstractVariableExpression.html#findtype
ZopeInterfaceFunction
Method
VISIBLE
:see Expression.findtype()
-
nltk.sem.logic.AbstractVariableExpression.predicates
nltk.sem.logic.AbstractVariableExpression.html#predicates
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.AbstractVariableExpression.__eq__
nltk.sem.logic.AbstractVariableExpression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Allow equality between instances of AbstractVariableExpression subtypes.
-
nltk.sem.logic.AbstractVariableExpression.__ne__
nltk.sem.logic.AbstractVariableExpression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AbstractVariableExpression.__lt__
nltk.sem.logic.AbstractVariableExpression.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AbstractVariableExpression.__str__
nltk.sem.logic.AbstractVariableExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.IndividualVariableExpression
nltk.sem.logic.IndividualVariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents variables that take the form of a single lowercase character (other than 'e') followed by zero or more digits.
-
nltk.sem.logic.IndividualVariableExpression._set_type
nltk.sem.logic.IndividualVariableExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.IndividualVariableExpression._get_type
nltk.sem.logic.IndividualVariableExpression.html#_get_type
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.logic.IndividualVariableExpression.type
nltk.sem.logic.IndividualVariableExpression.html#type
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.logic.IndividualVariableExpression.free
nltk.sem.logic.IndividualVariableExpression.html#free
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.IndividualVariableExpression.constants
nltk.sem.logic.IndividualVariableExpression.html#constants
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.FunctionVariableExpression
nltk.sem.logic.FunctionVariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents variables that take the form of a single uppercase character followed by zero or more digits.
-
nltk.sem.logic.FunctionVariableExpression.free
nltk.sem.logic.FunctionVariableExpression.html#free
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.FunctionVariableExpression.constants
nltk.sem.logic.FunctionVariableExpression.html#constants
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.EventVariableExpression
nltk.sem.logic.EventVariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents variables that take the form of a single lowercase 'e' character followed by zero or more digits.
-
nltk.sem.logic.ConstantExpression
nltk.sem.logic.ConstantExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents variables that do not take the form of a single character followed by zero or more digits.
-
nltk.sem.logic.ConstantExpression._set_type
nltk.sem.logic.ConstantExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.ConstantExpression.free
nltk.sem.logic.ConstantExpression.html#free
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.ConstantExpression.constants
nltk.sem.logic.ConstantExpression.html#constants
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.VariableExpression
nltk.sem.logic.html#VariableExpression
ZopeInterfaceFunction
Function
VISIBLE
This is a factory method that instantiates and returns a subtype of AbstractVariableExpression appropriate for the given variable.
-
nltk.sem.logic.VariableBinderExpression
nltk.sem.logic.VariableBinderExpression.html
ZopeInterfaceClass
Class
VISIBLE
This an abstract class for any Expression that binds a variable in an Expression. This includes LambdaExpressions and Quantified Expressions
-
nltk.sem.logic.VariableBinderExpression.__init__
nltk.sem.logic.VariableBinderExpression.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.VariableBinderExpression.variable
nltk.sem.logic.VariableBinderExpression.html#variable
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.VariableBinderExpression.term
nltk.sem.logic.VariableBinderExpression.html#term
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.VariableBinderExpression.replace
nltk.sem.logic.VariableBinderExpression.html#replace
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.VariableBinderExpression.alpha_convert
nltk.sem.logic.VariableBinderExpression.html#alpha_convert
ZopeInterfaceFunction
Method
VISIBLE
Rename all occurrences of the variable introduced by this variable binder in the expression to newvar. :param newvar: Variable, for the new variable
-
nltk.sem.logic.VariableBinderExpression.free
nltk.sem.logic.VariableBinderExpression.html#free
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.VariableBinderExpression.findtype
nltk.sem.logic.VariableBinderExpression.html#findtype
ZopeInterfaceFunction
Method
VISIBLE
:see Expression.findtype()
-
nltk.sem.logic.VariableBinderExpression.visit
nltk.sem.logic.VariableBinderExpression.html#visit
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.VariableBinderExpression.visit_structured
nltk.sem.logic.VariableBinderExpression.html#visit_structured
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.VariableBinderExpression.__eq__
nltk.sem.logic.VariableBinderExpression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Defines equality modulo alphabetic variance. If we are comparing x.M and y.N, then check equality of M and N[x/y].
-
nltk.sem.logic.VariableBinderExpression.__ne__
nltk.sem.logic.VariableBinderExpression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LambdaExpression
nltk.sem.logic.LambdaExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 property, 1/2 method documented
-
nltk.sem.logic.LambdaExpression.type
nltk.sem.logic.LambdaExpression.html#type
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.sem.logic.LambdaExpression._set_type
nltk.sem.logic.LambdaExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.LambdaExpression.__str__
nltk.sem.logic.LambdaExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.QuantifiedExpression
nltk.sem.logic.QuantifiedExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 property, 1/2 method documented
-
nltk.sem.logic.QuantifiedExpression.type
nltk.sem.logic.QuantifiedExpression.html#type
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.sem.logic.QuantifiedExpression._set_type
nltk.sem.logic.QuantifiedExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.QuantifiedExpression.__str__
nltk.sem.logic.QuantifiedExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ExistsExpression
nltk.sem.logic.ExistsExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.ExistsExpression.getQuantifier
nltk.sem.logic.ExistsExpression.html#getQuantifier
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AllExpression
nltk.sem.logic.AllExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.AllExpression.getQuantifier
nltk.sem.logic.AllExpression.html#getQuantifier
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.NegatedExpression
nltk.sem.logic.NegatedExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 property, 0/1 instance variable, 3/8 methods documented
-
nltk.sem.logic.NegatedExpression.__init__
nltk.sem.logic.NegatedExpression.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.NegatedExpression.term
nltk.sem.logic.NegatedExpression.html#term
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.NegatedExpression.type
nltk.sem.logic.NegatedExpression.html#type
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.sem.logic.NegatedExpression._set_type
nltk.sem.logic.NegatedExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.NegatedExpression.findtype
nltk.sem.logic.NegatedExpression.html#findtype
ZopeInterfaceFunction
Method
VISIBLE
Find the type of the given variable as it is used in this expression. For example, finding the type of "P" in "P(x) & Q(x,y)" yields "<e,t>"
-
nltk.sem.logic.NegatedExpression.visit
nltk.sem.logic.NegatedExpression.html#visit
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.NegatedExpression.negate
nltk.sem.logic.NegatedExpression.html#negate
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.NegatedExpression.__eq__
nltk.sem.logic.NegatedExpression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.NegatedExpression.__ne__
nltk.sem.logic.NegatedExpression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.NegatedExpression.__str__
nltk.sem.logic.NegatedExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BinaryExpression
nltk.sem.logic.BinaryExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 property, 0/2 instance variable, 2/7 methods documented
-
nltk.sem.logic.BinaryExpression.__init__
nltk.sem.logic.BinaryExpression.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BinaryExpression.first
nltk.sem.logic.BinaryExpression.html#first
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.BinaryExpression.second
nltk.sem.logic.BinaryExpression.html#second
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.BinaryExpression.type
nltk.sem.logic.BinaryExpression.html#type
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.sem.logic.BinaryExpression.findtype
nltk.sem.logic.BinaryExpression.html#findtype
ZopeInterfaceFunction
Method
VISIBLE
:see Expression.findtype()
-
nltk.sem.logic.BinaryExpression.visit
nltk.sem.logic.BinaryExpression.html#visit
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.logic.BinaryExpression.__eq__
nltk.sem.logic.BinaryExpression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BinaryExpression.__ne__
nltk.sem.logic.BinaryExpression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BinaryExpression.__str__
nltk.sem.logic.BinaryExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.BinaryExpression._str_subex
nltk.sem.logic.BinaryExpression.html#_str_subex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.logic.BooleanExpression
nltk.sem.logic.BooleanExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 method documented
-
nltk.sem.logic.BooleanExpression._set_type
nltk.sem.logic.BooleanExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.AndExpression
nltk.sem.logic.AndExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents conjunctions
-
nltk.sem.logic.AndExpression.getOp
nltk.sem.logic.AndExpression.html#getOp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.AndExpression._str_subex
nltk.sem.logic.AndExpression.html#_str_subex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.logic.OrExpression
nltk.sem.logic.OrExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents disjunctions
-
nltk.sem.logic.OrExpression.getOp
nltk.sem.logic.OrExpression.html#getOp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.OrExpression._str_subex
nltk.sem.logic.OrExpression.html#_str_subex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.logic.ImpExpression
nltk.sem.logic.ImpExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents implications
-
nltk.sem.logic.ImpExpression.getOp
nltk.sem.logic.ImpExpression.html#getOp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.IffExpression
nltk.sem.logic.IffExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents biconditionals
-
nltk.sem.logic.IffExpression.getOp
nltk.sem.logic.IffExpression.html#getOp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.EqualityExpression
nltk.sem.logic.EqualityExpression.html
ZopeInterfaceClass
Class
VISIBLE
This class represents equality expressions like "(x = y)".
-
nltk.sem.logic.EqualityExpression._set_type
nltk.sem.logic.EqualityExpression.html#_set_type
ZopeInterfaceFunction
Method
PRIVATE
:see Expression._set_type()
-
nltk.sem.logic.EqualityExpression.getOp
nltk.sem.logic.EqualityExpression.html#getOp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicalExpressionException
nltk.sem.logic.LogicalExpressionException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.LogicalExpressionException.__init__
nltk.sem.logic.LogicalExpressionException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.LogicalExpressionException.index
nltk.sem.logic.LogicalExpressionException.html#index
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.logic.UnexpectedTokenException
nltk.sem.logic.UnexpectedTokenException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.UnexpectedTokenException.__init__
nltk.sem.logic.UnexpectedTokenException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.ExpectedMoreTokensException
nltk.sem.logic.ExpectedMoreTokensException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.logic.ExpectedMoreTokensException.__init__
nltk.sem.logic.ExpectedMoreTokensException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.logic.is_indvar
nltk.sem.logic.html#is_indvar
ZopeInterfaceFunction
Function
VISIBLE
An individual variable must be a single lowercase character other than 'e', followed by zero or more digits.
-
nltk.sem.logic.is_funcvar
nltk.sem.logic.html#is_funcvar
ZopeInterfaceFunction
Function
VISIBLE
A function variable must be a single uppercase character followed by zero or more digits.
-
nltk.sem.logic.is_eventvar
nltk.sem.logic.html#is_eventvar
ZopeInterfaceFunction
Function
VISIBLE
An event variable must be a single lowercase 'e' character followed by zero or more digits.
-
nltk.sem.logic.demo
nltk.sem.logic.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.logic.demo_errors
nltk.sem.logic.html#demo_errors
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.logic.demoException
nltk.sem.logic.html#demoException
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.logic.printtype
nltk.sem.logic.html#printtype
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.featstruct.FeatStruct
nltk.featstruct.FeatStruct.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.featstruct.FeatStruct._frozen
nltk.featstruct.FeatStruct.html#_frozen
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.featstruct.FeatStruct.__new__
nltk.featstruct.FeatStruct.html#__new__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.featstruct.FeatStruct._keys
nltk.featstruct.FeatStruct.html#_keys
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of the feature identifiers used by this FeatStruct.
-
nltk.featstruct.FeatStruct._values
nltk.featstruct.FeatStruct.html#_values
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of the feature values directly defined by this FeatStruct.
-
nltk.featstruct.FeatStruct._items
nltk.featstruct.FeatStruct.html#_items
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of (fid,fval) pairs, where fid is a feature identifier and fval is the corresponding feature value, for all features defined by this FeatStruct.
-
nltk.featstruct.FeatStruct.equal_values
nltk.featstruct.FeatStruct.html#equal_values
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.featstruct.FeatStruct.__eq__
nltk.featstruct.FeatStruct.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.featstruct.FeatStruct.__ne__
nltk.featstruct.FeatStruct.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStruct.__lt__
nltk.featstruct.FeatStruct.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStruct.__hash__
nltk.featstruct.FeatStruct.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
If this feature structure is frozen, return its hash value; otherwise, raise TypeError.
-
nltk.featstruct.FeatStruct._hash
nltk.featstruct.FeatStruct.html#_hash
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStruct._equal
nltk.featstruct.FeatStruct.html#_equal
ZopeInterfaceFunction
Method
PRIVATE
Return True iff self and other have equal values.
-
nltk.featstruct.FeatStruct._calculate_hashvalue
nltk.featstruct.FeatStruct.html#_calculate_hashvalue
ZopeInterfaceFunction
Method
PRIVATE
Return a hash value for this feature structure.
-
nltk.featstruct.FeatStruct._FROZEN_ERROR
nltk.featstruct.FeatStruct.html#_FROZEN_ERROR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStruct.freeze
nltk.featstruct.FeatStruct.html#freeze
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.featstruct.FeatStruct.frozen
nltk.featstruct.FeatStruct.html#frozen
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.featstruct.FeatStruct._freeze
nltk.featstruct.FeatStruct.html#_freeze
ZopeInterfaceFunction
Method
PRIVATE
Make this feature structure, and any feature structure it contains, immutable.
-
nltk.featstruct.FeatStruct.copy
nltk.featstruct.FeatStruct.html#copy
ZopeInterfaceFunction
Method
VISIBLE
Return a new copy of self. The new copy will not be frozen.
-
nltk.featstruct.FeatStruct.__deepcopy__
nltk.featstruct.FeatStruct.html#__deepcopy__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStruct.cyclic
nltk.featstruct.FeatStruct.html#cyclic
ZopeInterfaceFunction
Method
VISIBLE
Return True if this feature structure contains itself.
-
nltk.featstruct.FeatStruct.walk
nltk.featstruct.FeatStruct.html#walk
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator that generates this feature structure, and each feature structure it contains. Each feature structure will be generated exactly once.
-
nltk.featstruct.FeatStruct._walk 0
nltk.featstruct.FeatStruct.html#_walk%200
ZopeInterfaceFunction
Method
PRIVATE
Return an iterator that generates this feature structure, and each feature structure it contains.
-
nltk.featstruct.FeatStruct._walk
nltk.featstruct.FeatStruct.html#_walk
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.featstruct.FeatStruct._find_reentrances
nltk.featstruct.FeatStruct.html#_find_reentrances
ZopeInterfaceFunction
Method
PRIVATE
Return a dictionary that maps from the id of each feature structure contained in self (including self) to a boolean value, indicating whether it is reentrant or not.
-
nltk.featstruct.FeatStruct.substitute_bindings
nltk.featstruct.FeatStruct.html#substitute_bindings
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.featstruct.FeatStruct.retract_bindings
nltk.featstruct.FeatStruct.html#retract_bindings
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.featstruct.FeatStruct.variables
nltk.featstruct.FeatStruct.html#variables
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.featstruct.FeatStruct.rename_variables
nltk.featstruct.FeatStruct.html#rename_variables
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.featstruct.FeatStruct.remove_variables
nltk.featstruct.FeatStruct.html#remove_variables
ZopeInterfaceFunction
Method
VISIBLE
Return the feature structure that is obtained by deleting any feature whose value is a Variable.
-
nltk.featstruct.FeatStruct.unify
nltk.featstruct.FeatStruct.html#unify
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStruct.subsumes
nltk.featstruct.FeatStruct.html#subsumes
ZopeInterfaceFunction
Method
VISIBLE
Return True if self subsumes other. I.e., return true If unifying self with other would result in a feature structure equal to other.
-
nltk.featstruct.FeatStruct.__repr__
nltk.featstruct.FeatStruct.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Display a single-line representation of this feature structure, suitable for embedding in other representations.
-
nltk.featstruct.FeatStruct._repr
nltk.featstruct.FeatStruct.html#_repr
ZopeInterfaceFunction
Method
PRIVATE
Return a string representation of this feature structure.
-
nltk.featstruct._FROZEN_ERROR
nltk.featstruct.html#_FROZEN_ERROR
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.featstruct._FROZEN_NOTICE
nltk.featstruct.html#_FROZEN_NOTICE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.featstruct._check_frozen
nltk.featstruct.html#_check_frozen
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.featstruct.FeatDict
nltk.featstruct.FeatDict.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.featstruct.FeatDict.__init__
nltk.featstruct.FeatDict.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new feature dictionary, with the specified features.
-
nltk.featstruct.FeatDict._INDEX_ERROR
nltk.featstruct.FeatDict.html#_INDEX_ERROR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatDict.__getitem__
nltk.featstruct.FeatDict.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
If the feature with the given name or path exists, return its value; otherwise, raise KeyError.
-
nltk.featstruct.FeatDict.get
nltk.featstruct.FeatDict.html#get
ZopeInterfaceFunction
Method
VISIBLE
If the feature with the given name or path exists, return its value; otherwise, return default.
-
nltk.featstruct.FeatDict.__contains__
nltk.featstruct.FeatDict.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Return true if a feature with the given name or path exists.
-
nltk.featstruct.FeatDict.has_key
nltk.featstruct.FeatDict.html#has_key
ZopeInterfaceFunction
Method
VISIBLE
Return true if a feature with the given name or path exists.
-
nltk.featstruct.FeatDict.__delitem__
nltk.featstruct.FeatDict.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
If the feature with the given name or path exists, delete its value; otherwise, raise KeyError.
-
nltk.featstruct.FeatDict.__setitem__
nltk.featstruct.FeatDict.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value for the feature with the given name or path to value. If name_or_path is an invalid path, raise KeyError.
-
nltk.featstruct.FeatDict.clear
nltk.featstruct.FeatDict.html#clear
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatDict.pop
nltk.featstruct.FeatDict.html#pop
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatDict.popitem
nltk.featstruct.FeatDict.html#popitem
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatDict.setdefault
nltk.featstruct.FeatDict.html#setdefault
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatDict.update
nltk.featstruct.FeatDict.html#update
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatDict.__deepcopy__
nltk.featstruct.FeatDict.html#__deepcopy__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatDict._keys
nltk.featstruct.FeatDict.html#_keys
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of the feature identifiers used by this FeatStruct.
-
nltk.featstruct.FeatDict._values
nltk.featstruct.FeatDict.html#_values
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of the feature values directly defined by this FeatStruct.
-
nltk.featstruct.FeatDict._items
nltk.featstruct.FeatDict.html#_items
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of (fid,fval) pairs, where fid is a feature identifier and fval is the corresponding feature value, for all features defined by this FeatStruct.
-
nltk.featstruct.FeatDict.__str__
nltk.featstruct.FeatDict.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Display a multi-line representation of this feature dictionary as an FVM (feature value matrix).
-
nltk.featstruct.FeatDict._repr
nltk.featstruct.FeatDict.html#_repr
ZopeInterfaceFunction
Method
PRIVATE
Return a string representation of this feature structure.
-
nltk.featstruct.FeatDict._str
nltk.featstruct.FeatDict.html#_str
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.featstruct.FeatList
nltk.featstruct.FeatList.html
ZopeInterfaceClass
Class
VISIBLE
A list of feature values, where each feature value is either a basic value (such as a string or an integer), or a nested feature structure.
-
nltk.featstruct.FeatList.__init__
nltk.featstruct.FeatList.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new feature list, with the specified features.
-
nltk.featstruct.FeatList._INDEX_ERROR
nltk.featstruct.FeatList.html#_INDEX_ERROR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatList.__getitem__
nltk.featstruct.FeatList.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.__delitem__
nltk.featstruct.FeatList.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
If the feature with the given name or path exists, delete its value; otherwise, raise KeyError.
-
nltk.featstruct.FeatList.__setitem__
nltk.featstruct.FeatList.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value for the feature with the given name or path to value. If name_or_path is an invalid path, raise KeyError.
-
nltk.featstruct.FeatList.__iadd__
nltk.featstruct.FeatList.html#__iadd__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.__imul__
nltk.featstruct.FeatList.html#__imul__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.append
nltk.featstruct.FeatList.html#append
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.extend
nltk.featstruct.FeatList.html#extend
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.insert
nltk.featstruct.FeatList.html#insert
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.pop
nltk.featstruct.FeatList.html#pop
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.remove
nltk.featstruct.FeatList.html#remove
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.reverse
nltk.featstruct.FeatList.html#reverse
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.sort
nltk.featstruct.FeatList.html#sort
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatList.__deepcopy__
nltk.featstruct.FeatList.html#__deepcopy__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatList._keys
nltk.featstruct.FeatList.html#_keys
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of the feature identifiers used by this FeatStruct.
-
nltk.featstruct.FeatList._values
nltk.featstruct.FeatList.html#_values
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of the feature values directly defined by this FeatStruct.
-
nltk.featstruct.FeatList._items
nltk.featstruct.FeatList.html#_items
ZopeInterfaceFunction
Method
PRIVATE
Return an iterable of (fid,fval) pairs, where fid is a feature identifier and fval is the corresponding feature value, for all features defined by this FeatStruct.
-
nltk.featstruct.FeatList._repr
nltk.featstruct.FeatList.html#_repr
ZopeInterfaceFunction
Method
PRIVATE
Return a string representation of this feature structure.
-
nltk.featstruct.substitute_bindings
nltk.featstruct.html#substitute_bindings
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.featstruct._substitute_bindings
nltk.featstruct.html#_substitute_bindings
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct.retract_bindings
nltk.featstruct.html#retract_bindings
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.featstruct._retract_bindings
nltk.featstruct.html#_retract_bindings
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct.find_variables
nltk.featstruct.html#find_variables
ZopeInterfaceFunction
Function
VISIBLE
-
nltk.featstruct._variables
nltk.featstruct.html#_variables
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct.rename_variables
nltk.featstruct.html#rename_variables
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.featstruct._rename_variables
nltk.featstruct.html#_rename_variables
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._rename_variable
nltk.featstruct.html#_rename_variable
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct.remove_variables
nltk.featstruct.html#remove_variables
ZopeInterfaceFunction
Function
VISIBLE
-
nltk.featstruct._remove_variables
nltk.featstruct.html#_remove_variables
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._UnificationFailure
nltk.featstruct._UnificationFailure.html
ZopeInterfaceClass
Class
PRIVATE
Undocumented
-
nltk.featstruct._UnificationFailure.__repr__
nltk.featstruct._UnificationFailure.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.UnificationFailure
nltk.featstruct.html#UnificationFailure
ZopeInterfaceAttribute
Variable
VISIBLE
A unique value used to indicate unification failure. It can be returned by Feature.unify_base_values() or by custom fail() functions to indicate that unificaiton should fail.
-
nltk.featstruct.unify
nltk.featstruct.html#unify
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.featstruct._UnificationFailureError
nltk.featstruct._UnificationFailureError.html
ZopeInterfaceClass
Class
PRIVATE
An exception that is used by _destructively_unify to abort unification when a failure is encountered.
-
nltk.featstruct._destructively_unify
nltk.featstruct.html#_destructively_unify
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.featstruct._unify_feature_values
nltk.featstruct.html#_unify_feature_values
ZopeInterfaceFunction
Function
PRIVATE
Attempt to unify fval1 and and fval2, and return the resulting unified value. The method of unification will depend on the types of fval1 and fval2:
-
nltk.featstruct._apply_forwards_to_bindings
nltk.featstruct.html#_apply_forwards_to_bindings
ZopeInterfaceFunction
Function
PRIVATE
Replace any feature structure that has a forward pointer with the target of its forward pointer (to preserve reentrancy).
-
nltk.featstruct._apply_forwards
nltk.featstruct.html#_apply_forwards
ZopeInterfaceFunction
Function
PRIVATE
Replace any feature structure that has a forward pointer with the target of its forward pointer (to preserve reentrancy).
-
nltk.featstruct._resolve_aliases
nltk.featstruct.html#_resolve_aliases
ZopeInterfaceFunction
Function
PRIVATE
Replace any bound aliased vars with their binding; and replace any unbound aliased vars with their representative var.
-
nltk.featstruct._trace_unify_start
nltk.featstruct.html#_trace_unify_start
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._trace_unify_identity
nltk.featstruct.html#_trace_unify_identity
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._trace_unify_fail
nltk.featstruct.html#_trace_unify_fail
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._trace_unify_succeed
nltk.featstruct.html#_trace_unify_succeed
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._trace_bindings
nltk.featstruct.html#_trace_bindings
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._trace_valrepr
nltk.featstruct.html#_trace_valrepr
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct.subsumes
nltk.featstruct.html#subsumes
ZopeInterfaceFunction
Function
VISIBLE
Return True if fstruct1 subsumes fstruct2. I.e., return true if unifying fstruct1 with fstruct2 would result in a feature structure equal to fstruct2.
-
nltk.featstruct.conflicts
nltk.featstruct.html#conflicts
ZopeInterfaceFunction
Function
VISIBLE
Return a list of the feature paths of all features which are assigned incompatible values by fstruct1 and fstruct2.
-
nltk.featstruct._is_mapping
nltk.featstruct.html#_is_mapping
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._is_sequence
nltk.featstruct.html#_is_sequence
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct._default_fs_class
nltk.featstruct.html#_default_fs_class
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.featstruct.SubstituteBindingsSequence
nltk.featstruct.SubstituteBindingsSequence.html
ZopeInterfaceClass
Class
VISIBLE
A mixin class for sequence clases that distributes variables() and substitute_bindings() over the object's elements.
-
nltk.featstruct.SubstituteBindingsSequence.variables
nltk.featstruct.SubstituteBindingsSequence.html#variables
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.featstruct.SubstituteBindingsSequence.substitute_bindings
nltk.featstruct.SubstituteBindingsSequence.html#substitute_bindings
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.featstruct.SubstituteBindingsSequence.subst
nltk.featstruct.SubstituteBindingsSequence.html#subst
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatureValueTuple
nltk.featstruct.FeatureValueTuple.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.featstruct.FeatureValueTuple.__repr__
nltk.featstruct.FeatureValueTuple.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatureValueSet
nltk.featstruct.FeatureValueSet.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.featstruct.FeatureValueSet.__repr__
nltk.featstruct.FeatureValueSet.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatureValueUnion
nltk.featstruct.FeatureValueUnion.html
ZopeInterfaceClass
Class
VISIBLE
A base feature value that represents the union of two or more FeatureValueSet or Variable.
-
nltk.featstruct.FeatureValueUnion.__new__
nltk.featstruct.FeatureValueUnion.html#__new__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatureValueUnion.__repr__
nltk.featstruct.FeatureValueUnion.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatureValueConcat
nltk.featstruct.FeatureValueConcat.html
ZopeInterfaceClass
Class
VISIBLE
A base feature value that represents the concatenation of two or more FeatureValueTuple or Variable.
-
nltk.featstruct.FeatureValueConcat.__new__
nltk.featstruct.FeatureValueConcat.html#__new__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatureValueConcat.__repr__
nltk.featstruct.FeatureValueConcat.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct._flatten
nltk.featstruct.html#_flatten
ZopeInterfaceFunction
Function
PRIVATE
Helper function -- return a copy of list, with all elements of type cls spliced in rather than appended in.
-
nltk.featstruct.Feature
nltk.featstruct.Feature.html
ZopeInterfaceClass
Class
VISIBLE
A feature identifier that's specialized to put additional constraints, default values, etc.
-
nltk.featstruct.Feature.__init__
nltk.featstruct.Feature.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.Feature._name
nltk.featstruct.Feature.html#_name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.Feature._default
nltk.featstruct.Feature.html#_default
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.Feature._display
nltk.featstruct.Feature.html#_display
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.Feature._sortkey
nltk.featstruct.Feature.html#_sortkey
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.Feature.name
nltk.featstruct.Feature.html#name
ZopeInterfaceAttribute
Property
VISIBLE
The name of this feature.
-
nltk.featstruct.Feature.default
nltk.featstruct.Feature.html#default
ZopeInterfaceAttribute
Property
VISIBLE
Default value for this feature.
-
nltk.featstruct.Feature.display
nltk.featstruct.Feature.html#display
ZopeInterfaceAttribute
Property
VISIBLE
Custom display location: can be prefix, or slash.
-
nltk.featstruct.Feature.__repr__
nltk.featstruct.Feature.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.Feature.__lt__
nltk.featstruct.Feature.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.Feature.__eq__
nltk.featstruct.Feature.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.Feature.__ne__
nltk.featstruct.Feature.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.Feature.__hash__
nltk.featstruct.Feature.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.Feature.read_value
nltk.featstruct.Feature.html#read_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.Feature.unify_base_values
nltk.featstruct.Feature.html#unify_base_values
ZopeInterfaceFunction
Method
VISIBLE
If possible, return a single value.. If not, return the value UnificationFailure.
-
nltk.featstruct.SlashFeature
nltk.featstruct.SlashFeature.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.featstruct.SlashFeature.read_value
nltk.featstruct.SlashFeature.html#read_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.RangeFeature
nltk.featstruct.RangeFeature.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.featstruct.RangeFeature.RANGE_RE
nltk.featstruct.RangeFeature.html#RANGE_RE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.RangeFeature.read_value
nltk.featstruct.RangeFeature.html#read_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.RangeFeature.unify_base_values
nltk.featstruct.RangeFeature.html#unify_base_values
ZopeInterfaceFunction
Method
VISIBLE
If possible, return a single value.. If not, return the value UnificationFailure.
-
nltk.featstruct.SLASH
nltk.featstruct.html#SLASH
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.featstruct.TYPE
nltk.featstruct.html#TYPE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.featstruct.CustomFeatureValue
nltk.featstruct.CustomFeatureValue.html
ZopeInterfaceClass
Class
VISIBLE
An abstract base class for base values that define a custom unification method. The custom unification method of CustomFeatureValue will be used during unification if:
-
nltk.featstruct.CustomFeatureValue.unify
nltk.featstruct.CustomFeatureValue.html#unify
ZopeInterfaceFunction
Method
VISIBLE
If this base value unifies with other, then return the unified value. Otherwise, return UnificationFailure.
-
nltk.featstruct.CustomFeatureValue.__eq__
nltk.featstruct.CustomFeatureValue.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.CustomFeatureValue.__ne__
nltk.featstruct.CustomFeatureValue.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.CustomFeatureValue.__lt__
nltk.featstruct.CustomFeatureValue.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.CustomFeatureValue.__hash__
nltk.featstruct.CustomFeatureValue.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader
nltk.featstruct.FeatStructReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/7 instance variable, 0/12 class variable, 5/20 methods documented
-
nltk.featstruct.FeatStructReader.__init__
nltk.featstruct.FeatStructReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader._features
nltk.featstruct.FeatStructReader.html#_features
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._fdict_class
nltk.featstruct.FeatStructReader.html#_fdict_class
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._flist_class
nltk.featstruct.FeatStructReader.html#_flist_class
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._prefix_feature
nltk.featstruct.FeatStructReader.html#_prefix_feature
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._slash_feature
nltk.featstruct.FeatStructReader.html#_slash_feature
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._features_with_defaults
nltk.featstruct.FeatStructReader.html#_features_with_defaults
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._logic_parser
nltk.featstruct.FeatStructReader.html#_logic_parser
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader.fromstring
nltk.featstruct.FeatStructReader.html#fromstring
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.featstruct.FeatStructReader._START_FSTRUCT_RE
nltk.featstruct.FeatStructReader.html#_START_FSTRUCT_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._END_FSTRUCT_RE
nltk.featstruct.FeatStructReader.html#_END_FSTRUCT_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._SLASH_RE
nltk.featstruct.FeatStructReader.html#_SLASH_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._FEATURE_NAME_RE
nltk.featstruct.FeatStructReader.html#_FEATURE_NAME_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._REENTRANCE_RE
nltk.featstruct.FeatStructReader.html#_REENTRANCE_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._TARGET_RE
nltk.featstruct.FeatStructReader.html#_TARGET_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._ASSIGN_RE
nltk.featstruct.FeatStructReader.html#_ASSIGN_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._COMMA_RE
nltk.featstruct.FeatStructReader.html#_COMMA_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._BARE_PREFIX_RE
nltk.featstruct.FeatStructReader.html#_BARE_PREFIX_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._START_FDICT_RE
nltk.featstruct.FeatStructReader.html#_START_FDICT_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader.read_partial
nltk.featstruct.FeatStructReader.html#read_partial
ZopeInterfaceFunction
Method
VISIBLE
Helper function that reads in a feature structure.
-
nltk.featstruct.FeatStructReader._read_partial
nltk.featstruct.FeatStructReader.html#_read_partial
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._read_partial_featlist
nltk.featstruct.FeatStructReader.html#_read_partial_featlist
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._read_partial_featdict
nltk.featstruct.FeatStructReader.html#_read_partial_featdict
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader._finalize
nltk.featstruct.FeatStructReader.html#_finalize
ZopeInterfaceFunction
Method
PRIVATE
Called when we see the close brace -- checks for a slash feature, and adds in default values.
-
nltk.featstruct.FeatStructReader._read_value
nltk.featstruct.FeatStructReader.html#_read_value
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader.read_value
nltk.featstruct.FeatStructReader.html#read_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader._error
nltk.featstruct.FeatStructReader.html#_error
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader.VALUE_HANDLERS
nltk.featstruct.FeatStructReader.html#VALUE_HANDLERS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader.read_fstruct_value
nltk.featstruct.FeatStructReader.html#read_fstruct_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader.read_str_value
nltk.featstruct.FeatStructReader.html#read_str_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader.read_int_value
nltk.featstruct.FeatStructReader.html#read_int_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader.read_var_value
nltk.featstruct.FeatStructReader.html#read_var_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader._SYM_CONSTS
nltk.featstruct.FeatStructReader.html#_SYM_CONSTS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.featstruct.FeatStructReader.read_sym_value
nltk.featstruct.FeatStructReader.html#read_sym_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader.read_app_value
nltk.featstruct.FeatStructReader.html#read_app_value
ZopeInterfaceFunction
Method
VISIBLE
Mainly included for backwards compat.
-
nltk.featstruct.FeatStructReader.read_logic_value
nltk.featstruct.FeatStructReader.html#read_logic_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader.read_tuple_value
nltk.featstruct.FeatStructReader.html#read_tuple_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader.read_set_value
nltk.featstruct.FeatStructReader.html#read_set_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.featstruct.FeatStructReader._read_seq_value
nltk.featstruct.FeatStructReader.html#_read_seq_value
ZopeInterfaceFunction
Method
PRIVATE
Helper function used by read_tuple_value and read_set_value.
-
nltk.featstruct.display_unification
nltk.featstruct.html#display_unification
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.featstruct.interactive_demo
nltk.featstruct.html#interactive_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.featstruct.demo
nltk.featstruct.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Just for testing
-
nltk.grammar.Nonterminal
nltk.grammar.Nonterminal.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.grammar.Nonterminal._symbol
nltk.grammar.Nonterminal.html#_symbol
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The node value corresponding to this
Nonterminal. This value must be immutable and hashable.
-
nltk.grammar.Nonterminal.__init__
nltk.grammar.Nonterminal.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new non-terminal from the given symbol.
-
nltk.grammar.Nonterminal.symbol
nltk.grammar.Nonterminal.html#symbol
ZopeInterfaceFunction
Method
VISIBLE
Return the node value corresponding to this Nonterminal.
-
nltk.grammar.Nonterminal.__eq__
nltk.grammar.Nonterminal.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Return True if this non-terminal is equal to other. In particular, return True if other is a Nonterminal and this non-terminal's symbol is equal to other 's symbol.
-
nltk.grammar.Nonterminal.__ne__
nltk.grammar.Nonterminal.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.Nonterminal.__lt__
nltk.grammar.Nonterminal.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.Nonterminal.__hash__
nltk.grammar.Nonterminal.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.Nonterminal.__repr__
nltk.grammar.Nonterminal.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation for this Nonterminal.
-
nltk.grammar.Nonterminal.__str__
nltk.grammar.Nonterminal.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation for this Nonterminal.
-
nltk.grammar.Nonterminal.__div__
nltk.grammar.Nonterminal.html#__div__
ZopeInterfaceFunction
Method
VISIBLE
Return a new nonterminal whose symbol is A/B, where A is the symbol for this nonterminal, and B is the symbol for rhs.
-
nltk.grammar.Nonterminal.__truediv__
nltk.grammar.Nonterminal.html#__truediv__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.grammar.nonterminals
nltk.grammar.html#nonterminals
ZopeInterfaceFunction
Function
VISIBLE
Given a string containing a list of symbol names, return a list of Nonterminals constructed from those symbols.
-
nltk.grammar.FeatStructNonterminal
nltk.grammar.FeatStructNonterminal.html
ZopeInterfaceClass
Class
VISIBLE
A feature structure that's also a nonterminal. It acts as its own symbol, and automatically freezes itself when hashed.
-
nltk.grammar.FeatStructNonterminal.__hash__
nltk.grammar.FeatStructNonterminal.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
If this feature structure is frozen, return its hash value; otherwise, raise TypeError.
-
nltk.grammar.FeatStructNonterminal.symbol
nltk.grammar.FeatStructNonterminal.html#symbol
ZopeInterfaceFunction
Method
VISIBLE
Return the node value corresponding to this Nonterminal.
-
nltk.grammar.is_nonterminal
nltk.grammar.html#is_nonterminal
ZopeInterfaceFunction
Function
VISIBLE
-
nltk.grammar.is_terminal
nltk.grammar.html#is_terminal
ZopeInterfaceFunction
Function
VISIBLE
Return True if the item is a terminal, which currently is if it is hashable and not a Nonterminal.
-
nltk.grammar.Production
nltk.grammar.Production.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.grammar.Production._lhs
nltk.grammar.Production.html#_lhs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The left-hand side of the production.
-
nltk.grammar.Production._rhs
nltk.grammar.Production.html#_rhs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The right-hand side of the production.
-
nltk.grammar.Production.__init__
nltk.grammar.Production.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Production.
-
nltk.grammar.Production.lhs
nltk.grammar.Production.html#lhs
ZopeInterfaceFunction
Method
VISIBLE
Return the left-hand side of this Production.
-
nltk.grammar.Production.rhs
nltk.grammar.Production.html#rhs
ZopeInterfaceFunction
Method
VISIBLE
Return the right-hand side of this Production.
-
nltk.grammar.Production.__len__
nltk.grammar.Production.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Return the length of the right-hand side.
-
nltk.grammar.Production.is_nonlexical
nltk.grammar.Production.html#is_nonlexical
ZopeInterfaceFunction
Method
VISIBLE
Return True if the right-hand side only contains Nonterminals
-
nltk.grammar.Production.is_lexical
nltk.grammar.Production.html#is_lexical
ZopeInterfaceFunction
Method
VISIBLE
Return True if the right-hand contain at least one terminal token.
-
nltk.grammar.Production.__str__
nltk.grammar.Production.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Return a verbose string representation of the Production.
-
nltk.grammar.Production.__repr__
nltk.grammar.Production.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a concise string representation of the Production.
-
nltk.grammar.Production.__eq__
nltk.grammar.Production.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Return True if this Production is equal to other.
-
nltk.grammar.Production.__ne__
nltk.grammar.Production.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.Production.__lt__
nltk.grammar.Production.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.Production.__hash__
nltk.grammar.Production.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Return a hash value for the Production.
-
nltk.grammar.DependencyProduction
nltk.grammar.DependencyProduction.html
ZopeInterfaceClass
Class
VISIBLE
A dependency grammar production. Each production maps a single head word to an unordered list of one or more modifier words.
-
nltk.grammar.DependencyProduction.__str__
nltk.grammar.DependencyProduction.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Return a verbose string representation of the DependencyProduction.
-
nltk.grammar.ProbabilisticProduction
nltk.grammar.ProbabilisticProduction.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.grammar.ProbabilisticProduction.__init__
nltk.grammar.ProbabilisticProduction.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new ProbabilisticProduction.
-
nltk.grammar.ProbabilisticProduction.__str__
nltk.grammar.ProbabilisticProduction.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Return a verbose string representation of the Production.
-
nltk.grammar.ProbabilisticProduction.__eq__
nltk.grammar.ProbabilisticProduction.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Return True if this Production is equal to other.
-
nltk.grammar.ProbabilisticProduction.__ne__
nltk.grammar.ProbabilisticProduction.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.ProbabilisticProduction.__hash__
nltk.grammar.ProbabilisticProduction.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Return a hash value for the Production.
-
nltk.grammar.CFG
nltk.grammar.CFG.html
ZopeInterfaceClass
Class
VISIBLE
A context-free grammar. A grammar consists of a start state and a set of productions. The set of terminals and nonterminals is implicitly specified by the productions.
-
nltk.grammar.CFG.__init__
nltk.grammar.CFG.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new context-free grammar, from the given start state and set of ``Production``s.
-
nltk.grammar.CFG._start
nltk.grammar.CFG.html#_start
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._productions
nltk.grammar.CFG.html#_productions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._categories
nltk.grammar.CFG.html#_categories
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._calculate_indexes
nltk.grammar.CFG.html#_calculate_indexes
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.grammar.CFG._lhs_index
nltk.grammar.CFG.html#_lhs_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._rhs_index
nltk.grammar.CFG.html#_rhs_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._empty_index
nltk.grammar.CFG.html#_empty_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._lexical_index
nltk.grammar.CFG.html#_lexical_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._calculate_leftcorners
nltk.grammar.CFG.html#_calculate_leftcorners
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.grammar.CFG._immediate_leftcorner_categories
nltk.grammar.CFG.html#_immediate_leftcorner_categories
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._immediate_leftcorner_words
nltk.grammar.CFG.html#_immediate_leftcorner_words
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._leftcorners
nltk.grammar.CFG.html#_leftcorners
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._leftcorner_parents
nltk.grammar.CFG.html#_leftcorner_parents
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._leftcorner_words
nltk.grammar.CFG.html#_leftcorner_words
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG.fromstring
nltk.grammar.CFG.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Return the grammar instance corresponding to the input string(s).
-
nltk.grammar.CFG.start
nltk.grammar.CFG.html#start
ZopeInterfaceFunction
Method
VISIBLE
Return the start symbol of the grammar
-
nltk.grammar.CFG.productions
nltk.grammar.CFG.html#productions
ZopeInterfaceFunction
Method
VISIBLE
Return the grammar productions, filtered by the left-hand side or the first item in the right-hand side.
-
nltk.grammar.CFG.leftcorners
nltk.grammar.CFG.html#leftcorners
ZopeInterfaceFunction
Method
VISIBLE
Return the set of all nonterminals that the given nonterminal can start with, including itself.
-
nltk.grammar.CFG.is_leftcorner
nltk.grammar.CFG.html#is_leftcorner
ZopeInterfaceFunction
Method
VISIBLE
True if left is a leftcorner of cat, where left can be a terminal or a nonterminal.
-
nltk.grammar.CFG.leftcorner_parents
nltk.grammar.CFG.html#leftcorner_parents
ZopeInterfaceFunction
Method
VISIBLE
Return the set of all nonterminals for which the given category is a left corner. This is the inverse of the leftcorner relation.
-
nltk.grammar.CFG.check_coverage
nltk.grammar.CFG.html#check_coverage
ZopeInterfaceFunction
Method
VISIBLE
Check whether the grammar rules cover the given list of tokens. If not, then raise an exception.
-
nltk.grammar.CFG._calculate_grammar_forms
nltk.grammar.CFG.html#_calculate_grammar_forms
ZopeInterfaceFunction
Method
PRIVATE
Pre-calculate of which form(s) the grammar is.
-
nltk.grammar.CFG._is_lexical
nltk.grammar.CFG.html#_is_lexical
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._is_nonlexical
nltk.grammar.CFG.html#_is_nonlexical
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._min_len
nltk.grammar.CFG.html#_min_len
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._max_len
nltk.grammar.CFG.html#_max_len
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG._all_unary_are_lexical
nltk.grammar.CFG.html#_all_unary_are_lexical
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.CFG.is_lexical
nltk.grammar.CFG.html#is_lexical
ZopeInterfaceFunction
Method
VISIBLE
Return True if all productions are lexicalised.
-
nltk.grammar.CFG.is_nonlexical
nltk.grammar.CFG.html#is_nonlexical
ZopeInterfaceFunction
Method
VISIBLE
Return True if all lexical rules are "preterminals", that is, unary rules which can be separated in a preprocessing step.
-
nltk.grammar.CFG.min_len
nltk.grammar.CFG.html#min_len
ZopeInterfaceFunction
Method
VISIBLE
Return the right-hand side length of the shortest grammar production.
-
nltk.grammar.CFG.max_len
nltk.grammar.CFG.html#max_len
ZopeInterfaceFunction
Method
VISIBLE
Return the right-hand side length of the longest grammar production.
-
nltk.grammar.CFG.is_nonempty
nltk.grammar.CFG.html#is_nonempty
ZopeInterfaceFunction
Method
VISIBLE
Return True if there are no empty productions.
-
nltk.grammar.CFG.is_binarised
nltk.grammar.CFG.html#is_binarised
ZopeInterfaceFunction
Method
VISIBLE
Return True if all productions are at most binary. Note that there can still be empty and unary productions.
-
nltk.grammar.CFG.is_flexible_chomsky_normal_form
nltk.grammar.CFG.html#is_flexible_chomsky_normal_form
ZopeInterfaceFunction
Method
VISIBLE
Return True if all productions are of the forms A -> B C, A -> B, or A -> "s".
-
nltk.grammar.CFG.is_chomsky_normal_form
nltk.grammar.CFG.html#is_chomsky_normal_form
ZopeInterfaceFunction
Method
VISIBLE
Return True if the grammar is of Chomsky Normal Form, i.e. all productions are of the form A -> B C, or A -> "s".
-
nltk.grammar.CFG.chomsky_normal_form
nltk.grammar.CFG.html#chomsky_normal_form
ZopeInterfaceFunction
Method
VISIBLE
Returns a new Grammer that is in chomsky normal :param: new_token_padding Customise new rule formation during binarisation
-
nltk.grammar.CFG.remove_unitary_rules
nltk.grammar.CFG.html#remove_unitary_rules
ZopeInterfaceFunction
Class Method
VISIBLE
Remove nonlexical unitary rules and convert them to lexical
-
nltk.grammar.CFG.binarize
nltk.grammar.CFG.html#binarize
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.grammar.CFG.eliminate_start
nltk.grammar.CFG.html#eliminate_start
ZopeInterfaceFunction
Class Method
VISIBLE
Eliminate start rule in case it appears on RHS Example: S -> S0 S1 and S0 -> S1 S Then another rule S0_Sigma -> S is added
-
nltk.grammar.CFG.__repr__
nltk.grammar.CFG.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.CFG.__str__
nltk.grammar.CFG.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.FeatureGrammar
nltk.grammar.FeatureGrammar.html
ZopeInterfaceClass
Class
VISIBLE
A feature-based grammar. This is equivalent to a CFG whose nonterminals are all FeatStructNonterminal.
-
nltk.grammar.FeatureGrammar.__init__
nltk.grammar.FeatureGrammar.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new feature-based grammar, from the given start state and set of Productions.
-
nltk.grammar.FeatureGrammar._calculate_indexes
nltk.grammar.FeatureGrammar.html#_calculate_indexes
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.grammar.FeatureGrammar._lhs_index
nltk.grammar.FeatureGrammar.html#_lhs_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.FeatureGrammar._rhs_index
nltk.grammar.FeatureGrammar.html#_rhs_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.FeatureGrammar._empty_index
nltk.grammar.FeatureGrammar.html#_empty_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.FeatureGrammar._empty_productions
nltk.grammar.FeatureGrammar.html#_empty_productions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.FeatureGrammar._lexical_index
nltk.grammar.FeatureGrammar.html#_lexical_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.FeatureGrammar.fromstring
nltk.grammar.FeatureGrammar.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Return a feature structure based grammar.
-
nltk.grammar.FeatureGrammar.productions
nltk.grammar.FeatureGrammar.html#productions
ZopeInterfaceFunction
Method
VISIBLE
Return the grammar productions, filtered by the left-hand side or the first item in the right-hand side.
-
nltk.grammar.FeatureGrammar.leftcorners
nltk.grammar.FeatureGrammar.html#leftcorners
ZopeInterfaceFunction
Method
VISIBLE
Return the set of all words that the given category can start with. Also called the "first set" in compiler construction.
-
nltk.grammar.FeatureGrammar.leftcorner_parents
nltk.grammar.FeatureGrammar.html#leftcorner_parents
ZopeInterfaceFunction
Method
VISIBLE
Return the set of all categories for which the given category is a left corner.
-
nltk.grammar.FeatureGrammar._get_type_if_possible
nltk.grammar.FeatureGrammar.html#_get_type_if_possible
ZopeInterfaceFunction
Method
PRIVATE
Helper function which returns the TYPE feature of the item, if it exists, otherwise it returns the item itself
-
nltk.grammar.FeatureValueType
nltk.grammar.FeatureValueType.html
ZopeInterfaceClass
Class
VISIBLE
A helper class for FeatureGrammars, designed to be different from ordinary strings. This is to stop the FeatStruct FOO[] from being compare equal to the terminal "FOO".
-
nltk.grammar.FeatureValueType.__init__
nltk.grammar.FeatureValueType.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.FeatureValueType._value
nltk.grammar.FeatureValueType.html#_value
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.FeatureValueType.__repr__
nltk.grammar.FeatureValueType.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.FeatureValueType.__eq__
nltk.grammar.FeatureValueType.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.FeatureValueType.__ne__
nltk.grammar.FeatureValueType.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.FeatureValueType.__lt__
nltk.grammar.FeatureValueType.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.FeatureValueType.__hash__
nltk.grammar.FeatureValueType.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.DependencyGrammar
nltk.grammar.DependencyGrammar.html
ZopeInterfaceClass
Class
VISIBLE
A dependency grammar. A DependencyGrammar consists of a set of productions. Each production specifies a head/modifier relationship between a pair of words.
-
nltk.grammar.DependencyGrammar.__init__
nltk.grammar.DependencyGrammar.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new dependency grammar, from the set of Productions.
-
nltk.grammar.DependencyGrammar._productions
nltk.grammar.DependencyGrammar.html#_productions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.DependencyGrammar.fromstring
nltk.grammar.DependencyGrammar.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.grammar.DependencyGrammar.contains
nltk.grammar.DependencyGrammar.html#contains
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.grammar.DependencyGrammar.__contains__
nltk.grammar.DependencyGrammar.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Return True if this DependencyGrammar contains a DependencyProduction mapping 'head' to 'mod'.
-
nltk.grammar.DependencyGrammar.__str__
nltk.grammar.DependencyGrammar.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Return a verbose string representation of the DependencyGrammar
-
nltk.grammar.DependencyGrammar.__repr__
nltk.grammar.DependencyGrammar.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a concise string representation of the DependencyGrammar
-
nltk.grammar.ProbabilisticDependencyGrammar
nltk.grammar.ProbabilisticDependencyGrammar.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.grammar.ProbabilisticDependencyGrammar.__init__
nltk.grammar.ProbabilisticDependencyGrammar.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.grammar.ProbabilisticDependencyGrammar._productions
nltk.grammar.ProbabilisticDependencyGrammar.html#_productions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.ProbabilisticDependencyGrammar._events
nltk.grammar.ProbabilisticDependencyGrammar.html#_events
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.ProbabilisticDependencyGrammar._tags
nltk.grammar.ProbabilisticDependencyGrammar.html#_tags
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.grammar.ProbabilisticDependencyGrammar.contains
nltk.grammar.ProbabilisticDependencyGrammar.html#contains
ZopeInterfaceFunction
Method
VISIBLE
Return True if this DependencyGrammar contains a DependencyProduction mapping 'head' to 'mod'.
-
nltk.grammar.ProbabilisticDependencyGrammar.__str__
nltk.grammar.ProbabilisticDependencyGrammar.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Return a verbose string representation of the ProbabilisticDependencyGrammar
-
nltk.grammar.ProbabilisticDependencyGrammar.__repr__
nltk.grammar.ProbabilisticDependencyGrammar.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a concise string representation of the ProbabilisticDependencyGrammar
-
nltk.grammar.PCFG
nltk.grammar.PCFG.html
ZopeInterfaceClass
Class
VISIBLE
A probabilistic context-free grammar. A PCFG consists of a start state and a set of productions with probabilities. The set of terminals and nonterminals is implicitly specified by the productions.
-
nltk.grammar.PCFG.EPSILON
nltk.grammar.PCFG.html#EPSILON
ZopeInterfaceAttribute
Class Variable
VISIBLE
The acceptable margin of error for checking that
productions with a given left-hand side have probabilities
that sum to 1.
-
nltk.grammar.PCFG.__init__
nltk.grammar.PCFG.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new context-free grammar, from the given start state and set of ProbabilisticProductions.
-
nltk.grammar.PCFG.fromstring
nltk.grammar.PCFG.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Return a probabilistic context-free grammar corresponding to the input string(s).
-
nltk.grammar.induce_pcfg
nltk.grammar.html#induce_pcfg
ZopeInterfaceFunction
Function
VISIBLE
Induce a PCFG grammar from a list of productions.
-
nltk.grammar._read_cfg_production
nltk.grammar.html#_read_cfg_production
ZopeInterfaceFunction
Function
PRIVATE
Return a list of context-free Productions.
-
nltk.grammar._read_pcfg_production
nltk.grammar.html#_read_pcfg_production
ZopeInterfaceFunction
Function
PRIVATE
Return a list of PCFG ProbabilisticProductions.
-
nltk.grammar._read_fcfg_production
nltk.grammar.html#_read_fcfg_production
ZopeInterfaceFunction
Function
PRIVATE
Return a list of feature-based Productions.
-
nltk.grammar._ARROW_RE
nltk.grammar.html#_ARROW_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.grammar._PROBABILITY_RE
nltk.grammar.html#_PROBABILITY_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.grammar._TERMINAL_RE
nltk.grammar.html#_TERMINAL_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.grammar._DISJUNCTION_RE
nltk.grammar.html#_DISJUNCTION_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.grammar._read_production
nltk.grammar.html#_read_production
ZopeInterfaceFunction
Function
PRIVATE
Parse a grammar rule, given as a string, and return a list of productions.
-
nltk.grammar.read_grammar
nltk.grammar.html#read_grammar
ZopeInterfaceFunction
Function
VISIBLE
Return a pair consisting of a starting category and a list of Productions.
-
nltk.grammar._STANDARD_NONTERM_RE
nltk.grammar.html#_STANDARD_NONTERM_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.grammar.standard_nonterm_parser
nltk.grammar.html#standard_nonterm_parser
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.grammar._READ_DG_RE
nltk.grammar.html#_READ_DG_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.grammar._SPLIT_DG_RE
nltk.grammar.html#_SPLIT_DG_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.grammar._read_dependency_production
nltk.grammar.html#_read_dependency_production
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.grammar.cfg_demo
nltk.grammar.html#cfg_demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration showing how CFGs can be created and used.
-
nltk.grammar.toy_pcfg1
nltk.grammar.html#toy_pcfg1
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.grammar.toy_pcfg2
nltk.grammar.html#toy_pcfg2
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.grammar.pcfg_demo
nltk.grammar.html#pcfg_demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration showing how a PCFG can be created and used.
-
nltk.grammar.fcfg_demo
nltk.grammar.html#fcfg_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.grammar.dg_demo
nltk.grammar.html#dg_demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration showing the creation and inspection of a DependencyGrammar.
-
nltk.grammar.sdg_demo
nltk.grammar.html#sdg_demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of how to read a string representation of a CoNLL format dependency tree.
-
nltk.grammar.demo
nltk.grammar.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tree.Tree
nltk.tree.Tree.html
ZopeInterfaceClass
Class
VISIBLE
A Tree represents a hierarchical grouping of leaves and subtrees. For example, each constituent in a syntax tree is represented by a single Tree.
-
nltk.tree.Tree.__init__
nltk.tree.Tree.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree._label
nltk.tree.Tree.html#_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tree.Tree.__eq__
nltk.tree.Tree.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__lt__
nltk.tree.Tree.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__ne__
nltk.tree.Tree.html#__ne__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tree.Tree.__gt__
nltk.tree.Tree.html#__gt__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tree.Tree.__le__
nltk.tree.Tree.html#__le__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tree.Tree.__ge__
nltk.tree.Tree.html#__ge__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tree.Tree.__mul__
nltk.tree.Tree.html#__mul__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__rmul__
nltk.tree.Tree.html#__rmul__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__add__
nltk.tree.Tree.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__radd__
nltk.tree.Tree.html#__radd__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__getitem__
nltk.tree.Tree.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__setitem__
nltk.tree.Tree.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__delitem__
nltk.tree.Tree.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree._get_node
nltk.tree.Tree.html#_get_node
ZopeInterfaceFunction
Method
PRIVATE
Outdated method to access the node value; use the label() method instead.
-
nltk.tree.Tree._set_node
nltk.tree.Tree.html#_set_node
ZopeInterfaceFunction
Method
PRIVATE
Outdated method to set the node value; use the set_label() method instead.
-
nltk.tree.Tree.node
nltk.tree.Tree.html#node
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tree.Tree.label
nltk.tree.Tree.html#label
ZopeInterfaceFunction
Method
VISIBLE
Return the node label of the tree.
-
nltk.tree.Tree.set_label
nltk.tree.Tree.html#set_label
ZopeInterfaceFunction
Method
VISIBLE
Set the node label of the tree.
-
nltk.tree.Tree.leaves
nltk.tree.Tree.html#leaves
ZopeInterfaceFunction
Method
VISIBLE
Return the leaves of the tree.
-
nltk.tree.Tree.flatten
nltk.tree.Tree.html#flatten
ZopeInterfaceFunction
Method
VISIBLE
Return a flat version of the tree, with all non-root non-terminals removed.
-
nltk.tree.Tree.height
nltk.tree.Tree.html#height
ZopeInterfaceFunction
Method
VISIBLE
Return the height of the tree.
-
nltk.tree.Tree.treepositions
nltk.tree.Tree.html#treepositions
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tree.Tree.subtrees
nltk.tree.Tree.html#subtrees
ZopeInterfaceFunction
Method
VISIBLE
Generate all the subtrees of this tree, optionally restricted to trees matching the filter function.
-
nltk.tree.Tree.productions
nltk.tree.Tree.html#productions
ZopeInterfaceFunction
Method
VISIBLE
Generate the productions that correspond to the non-terminal nodes of the tree. For each subtree of the form (P: C1 C2 ... Cn) this produces a production of the form P -> C1 C2 ... Cn.
-
nltk.tree.Tree.pos
nltk.tree.Tree.html#pos
ZopeInterfaceFunction
Method
VISIBLE
Return a sequence of pos-tagged words extracted from the tree.
-
nltk.tree.Tree.leaf_treeposition
nltk.tree.Tree.html#leaf_treeposition
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tree.Tree.treeposition_spanning_leaves
nltk.tree.Tree.html#treeposition_spanning_leaves
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tree.Tree.chomsky_normal_form
nltk.tree.Tree.html#chomsky_normal_form
ZopeInterfaceFunction
Method
VISIBLE
This method can modify a tree in three ways:
-
nltk.tree.Tree.un_chomsky_normal_form
nltk.tree.Tree.html#un_chomsky_normal_form
ZopeInterfaceFunction
Method
VISIBLE
This method modifies the tree in three ways:
-
nltk.tree.Tree.collapse_unary
nltk.tree.Tree.html#collapse_unary
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tree.Tree.convert
nltk.tree.Tree.html#convert
ZopeInterfaceFunction
Class Method
VISIBLE
Convert a tree between different subtypes of Tree. cls determines which class will be used to encode the new tree.
-
nltk.tree.Tree.__copy__
nltk.tree.Tree.html#__copy__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.__deepcopy__
nltk.tree.Tree.html#__deepcopy__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.copy
nltk.tree.Tree.html#copy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree._frozen_class
nltk.tree.Tree.html#_frozen_class
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tree.Tree.freeze
nltk.tree.Tree.html#freeze
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.fromstring
nltk.tree.Tree.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Read a bracketed tree string and return the resulting tree. Trees are represented as nested brackettings, such as:
-
nltk.tree.Tree._parse_error
nltk.tree.Tree.html#_parse_error
ZopeInterfaceFunction
Class Method
PRIVATE
No summary
-
nltk.tree.Tree.fromlist
nltk.tree.Tree.html#fromlist
ZopeInterfaceFunction
Class Method
VISIBLE
-
nltk.tree.Tree.draw
nltk.tree.Tree.html#draw
ZopeInterfaceFunction
Method
VISIBLE
Open a new window containing a graphical diagram of this tree.
-
nltk.tree.Tree.pretty_print
nltk.tree.Tree.html#pretty_print
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tree.Tree.__repr__
nltk.tree.Tree.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree._repr_png_
nltk.tree.Tree.html#_repr_png_
ZopeInterfaceFunction
Method
PRIVATE
Draws and outputs in PNG for ipython. PNG is used instead of PDF, since it can be displayed in the qt console and has wider browser support.
-
nltk.tree.Tree.__str__
nltk.tree.Tree.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.Tree.pprint
nltk.tree.Tree.html#pprint
ZopeInterfaceFunction
Method
VISIBLE
Print a string representation of this Tree to 'stream'
-
nltk.tree.Tree.pformat
nltk.tree.Tree.html#pformat
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tree.Tree.pformat_latex_qtree
nltk.tree.Tree.html#pformat_latex_qtree
ZopeInterfaceFunction
Method
VISIBLE
Returns a representation of the tree compatible with the LaTeX qtree package. This consists of the string \Tree followed by the tree represented in bracketed notation.
-
nltk.tree.Tree._pformat_flat
nltk.tree.Tree.html#_pformat_flat
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tree.ImmutableTree
nltk.tree.ImmutableTree.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 instance variable, 1/15 method documented
-
nltk.tree.ImmutableTree.__init__
nltk.tree.ImmutableTree.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree._hash
nltk.tree.ImmutableTree.html#_hash
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tree.ImmutableTree.__setitem__
nltk.tree.ImmutableTree.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.__setslice__
nltk.tree.ImmutableTree.html#__setslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.__delitem__
nltk.tree.ImmutableTree.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.__delslice__
nltk.tree.ImmutableTree.html#__delslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.__iadd__
nltk.tree.ImmutableTree.html#__iadd__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.__imul__
nltk.tree.ImmutableTree.html#__imul__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.append
nltk.tree.ImmutableTree.html#append
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.extend
nltk.tree.ImmutableTree.html#extend
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.pop
nltk.tree.ImmutableTree.html#pop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.remove
nltk.tree.ImmutableTree.html#remove
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.reverse
nltk.tree.ImmutableTree.html#reverse
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.sort
nltk.tree.ImmutableTree.html#sort
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.__hash__
nltk.tree.ImmutableTree.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableTree.set_label
nltk.tree.ImmutableTree.html#set_label
ZopeInterfaceFunction
Method
VISIBLE
Set the node label. This will only succeed the first time the node label is set, which should occur in ImmutableTree.__init__().
-
nltk.tree.ImmutableTree._label
nltk.tree.ImmutableTree.html#_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tree.AbstractParentedTree
nltk.tree.AbstractParentedTree.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tree.AbstractParentedTree.__init__
nltk.tree.AbstractParentedTree.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree._setparent
nltk.tree.AbstractParentedTree.html#_setparent
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tree.AbstractParentedTree._delparent
nltk.tree.AbstractParentedTree.html#_delparent
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tree.AbstractParentedTree.__delitem__
nltk.tree.AbstractParentedTree.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.__setitem__
nltk.tree.AbstractParentedTree.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.append
nltk.tree.AbstractParentedTree.html#append
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.extend
nltk.tree.AbstractParentedTree.html#extend
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.insert
nltk.tree.AbstractParentedTree.html#insert
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.pop
nltk.tree.AbstractParentedTree.html#pop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.remove
nltk.tree.AbstractParentedTree.html#remove
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.__getslice__
nltk.tree.AbstractParentedTree.html#__getslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.__delslice__
nltk.tree.AbstractParentedTree.html#__delslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.AbstractParentedTree.__setslice__
nltk.tree.AbstractParentedTree.html#__setslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ParentedTree
nltk.tree.ParentedTree.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tree.ParentedTree.__init__
nltk.tree.ParentedTree.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ParentedTree._parent
nltk.tree.ParentedTree.html#_parent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The parent of this Tree, or None if it has no parent.
-
nltk.tree.ParentedTree._frozen_class
nltk.tree.ParentedTree.html#_frozen_class
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tree.ParentedTree.parent
nltk.tree.ParentedTree.html#parent
ZopeInterfaceFunction
Method
VISIBLE
The parent of this tree, or None if it has no parent.
-
nltk.tree.ParentedTree.parent_index
nltk.tree.ParentedTree.html#parent_index
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tree.ParentedTree.left_sibling
nltk.tree.ParentedTree.html#left_sibling
ZopeInterfaceFunction
Method
VISIBLE
The left sibling of this tree, or None if it has none.
-
nltk.tree.ParentedTree.right_sibling
nltk.tree.ParentedTree.html#right_sibling
ZopeInterfaceFunction
Method
VISIBLE
The right sibling of this tree, or None if it has none.
-
nltk.tree.ParentedTree.root
nltk.tree.ParentedTree.html#root
ZopeInterfaceFunction
Method
VISIBLE
The root of this tree. I.e., the unique ancestor of this tree whose parent is None. If ptree.parent() is None, then ptree is its own root.
-
nltk.tree.ParentedTree.treeposition
nltk.tree.ParentedTree.html#treeposition
ZopeInterfaceFunction
Method
VISIBLE
The tree position of this tree, relative to the root of the tree. I.e., ptree.root[ptree.treeposition] is ptree.
-
nltk.tree.ParentedTree._delparent
nltk.tree.ParentedTree.html#_delparent
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tree.ParentedTree._setparent
nltk.tree.ParentedTree.html#_setparent
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tree.MultiParentedTree
nltk.tree.MultiParentedTree.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tree.MultiParentedTree.__init__
nltk.tree.MultiParentedTree.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.MultiParentedTree._parents
nltk.tree.MultiParentedTree.html#_parents
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of this tree's parents. This list should not contain duplicates, even if a parent contains this tree multiple times.
-
nltk.tree.MultiParentedTree._frozen_class
nltk.tree.MultiParentedTree.html#_frozen_class
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tree.MultiParentedTree.parents
nltk.tree.MultiParentedTree.html#parents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tree.MultiParentedTree.left_siblings
nltk.tree.MultiParentedTree.html#left_siblings
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tree.MultiParentedTree.right_siblings
nltk.tree.MultiParentedTree.html#right_siblings
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tree.MultiParentedTree._get_parent_indices
nltk.tree.MultiParentedTree.html#_get_parent_indices
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tree.MultiParentedTree.roots
nltk.tree.MultiParentedTree.html#roots
ZopeInterfaceFunction
Method
VISIBLE
The set of all roots of this tree. This set is formed by tracing all possible parent paths until trees with no parents are found.
-
nltk.tree.MultiParentedTree._get_roots_helper
nltk.tree.MultiParentedTree.html#_get_roots_helper
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tree.MultiParentedTree.parent_indices
nltk.tree.MultiParentedTree.html#parent_indices
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tree.MultiParentedTree.treepositions
nltk.tree.MultiParentedTree.html#treepositions
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all tree positions that can be used to reach this multi-parented tree starting from root. I.e., the following is always true:
-
nltk.tree.MultiParentedTree._delparent
nltk.tree.MultiParentedTree.html#_delparent
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tree.MultiParentedTree._setparent
nltk.tree.MultiParentedTree.html#_setparent
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tree.ImmutableParentedTree
nltk.tree.ImmutableParentedTree.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.tree.ImmutableMultiParentedTree
nltk.tree.ImmutableMultiParentedTree.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.tree.ProbabilisticTree
nltk.tree.ProbabilisticTree.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.tree.ProbabilisticTree.__init__
nltk.tree.ProbabilisticTree.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize this object's probability. This initializer should be called by subclass constructors. prob should generally be the first argument for those constructors.
-
nltk.tree.ProbabilisticTree._frozen_class
nltk.tree.ProbabilisticTree.html#_frozen_class
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tree.ProbabilisticTree.__repr__
nltk.tree.ProbabilisticTree.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ProbabilisticTree.__str__
nltk.tree.ProbabilisticTree.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ProbabilisticTree.copy
nltk.tree.ProbabilisticTree.html#copy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ProbabilisticTree.convert
nltk.tree.ProbabilisticTree.html#convert
ZopeInterfaceFunction
Class Method
VISIBLE
Convert a tree between different subtypes of Tree. cls determines which class will be used to encode the new tree.
-
nltk.tree.ProbabilisticTree.__eq__
nltk.tree.ProbabilisticTree.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ProbabilisticTree.__lt__
nltk.tree.ProbabilisticTree.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableProbabilisticTree
nltk.tree.ImmutableProbabilisticTree.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.tree.ImmutableProbabilisticTree.__init__
nltk.tree.ImmutableProbabilisticTree.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize this object's probability. This initializer should be called by subclass constructors. prob should generally be the first argument for those constructors.
-
nltk.tree.ImmutableProbabilisticTree._hash
nltk.tree.ImmutableProbabilisticTree.html#_hash
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tree.ImmutableProbabilisticTree._frozen_class
nltk.tree.ImmutableProbabilisticTree.html#_frozen_class
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tree.ImmutableProbabilisticTree.__repr__
nltk.tree.ImmutableProbabilisticTree.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableProbabilisticTree.__str__
nltk.tree.ImmutableProbabilisticTree.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableProbabilisticTree.copy
nltk.tree.ImmutableProbabilisticTree.html#copy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tree.ImmutableProbabilisticTree.convert
nltk.tree.ImmutableProbabilisticTree.html#convert
ZopeInterfaceFunction
Class Method
VISIBLE
Convert a tree between different subtypes of Tree. cls determines which class will be used to encode the new tree.
-
nltk.tree._child_names
nltk.tree.html#_child_names
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tree.bracket_parse
nltk.tree.html#bracket_parse
ZopeInterfaceFunction
Function
VISIBLE
Use Tree.read(s, remove_empty_top_bracketing=True) instead.
-
nltk.tree.sinica_parse
nltk.tree.html#sinica_parse
ZopeInterfaceFunction
Function
VISIBLE
Parse a Sinica Treebank string and return a tree. Trees are represented as nested brackettings, as shown in the following example (X represents a Chinese character): S(goal:NP(Head:Nep:XX)|theme:NP(Head:Nhaa:X)|quantity:Dab:X|Head:VL2:X)#0(PERIODCATEGORY)
-
nltk.tree.demo
nltk.tree.html#demo
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.parse.api.ParserI
nltk.parse.api.ParserI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.api.ParserI.grammar
nltk.parse.api.ParserI.html#grammar
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.api.ParserI.parse
nltk.parse.api.ParserI.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.api.ParserI.parse_sents
nltk.parse.api.ParserI.html#parse_sents
ZopeInterfaceFunction
Method
VISIBLE
Apply self.parse() to each element of sents. :rtype: iter(iter(Tree))
-
nltk.parse.api.ParserI.parse_all
nltk.parse.api.ParserI.html#parse_all
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.api.ParserI.parse_one
nltk.parse.api.ParserI.html#parse_one
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.chart.EdgeI
nltk.parse.chart.EdgeI.html
ZopeInterfaceClass
Class
VISIBLE
A hypothesis about the structure of part of a sentence. Each edge records the fact that a structure is (partially) consistent with the sentence. An edge contains:
-
nltk.parse.chart.EdgeI.__init__
nltk.parse.chart.EdgeI.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.EdgeI.span
nltk.parse.chart.EdgeI.html#span
ZopeInterfaceFunction
Method
VISIBLE
Return a tuple (s, e), where tokens[s:e] is the portion of the sentence that is consistent with this edge's structure.
-
nltk.parse.chart.EdgeI.start
nltk.parse.chart.EdgeI.html#start
ZopeInterfaceFunction
Method
VISIBLE
Return the start index of this edge's span.
-
nltk.parse.chart.EdgeI.end
nltk.parse.chart.EdgeI.html#end
ZopeInterfaceFunction
Method
VISIBLE
Return the end index of this edge's span.
-
nltk.parse.chart.EdgeI.length
nltk.parse.chart.EdgeI.html#length
ZopeInterfaceFunction
Method
VISIBLE
Return the length of this edge's span.
-
nltk.parse.chart.EdgeI.lhs
nltk.parse.chart.EdgeI.html#lhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's left-hand side, which specifies what kind of structure is hypothesized by this edge.
-
nltk.parse.chart.EdgeI.rhs
nltk.parse.chart.EdgeI.html#rhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's right-hand side, which specifies the content of the structure hypothesized by this edge.
-
nltk.parse.chart.EdgeI.dot
nltk.parse.chart.EdgeI.html#dot
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.EdgeI.nextsym
nltk.parse.chart.EdgeI.html#nextsym
ZopeInterfaceFunction
Method
VISIBLE
Return the element of this edge's right-hand side that immediately follows its dot.
-
nltk.parse.chart.EdgeI.is_complete
nltk.parse.chart.EdgeI.html#is_complete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is fully consistent with the text.
-
nltk.parse.chart.EdgeI.is_incomplete
nltk.parse.chart.EdgeI.html#is_incomplete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is partially consistent with the text.
-
nltk.parse.chart.EdgeI.__eq__
nltk.parse.chart.EdgeI.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.EdgeI.__ne__
nltk.parse.chart.EdgeI.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.EdgeI.__lt__
nltk.parse.chart.EdgeI.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.EdgeI.__hash__
nltk.parse.chart.EdgeI.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.EdgeI._hash
nltk.parse.chart.EdgeI.html#_hash
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.TreeEdge
nltk.parse.chart.TreeEdge.html
ZopeInterfaceClass
Class
VISIBLE
An edge that records the fact that a tree is (partially) consistent with the sentence. A tree edge consists of:
-
nltk.parse.chart.TreeEdge.__init__
nltk.parse.chart.TreeEdge.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new TreeEdge.
-
nltk.parse.chart.TreeEdge._span
nltk.parse.chart.TreeEdge.html#_span
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.TreeEdge._lhs
nltk.parse.chart.TreeEdge.html#_lhs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.TreeEdge._rhs
nltk.parse.chart.TreeEdge.html#_rhs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.TreeEdge._dot
nltk.parse.chart.TreeEdge.html#_dot
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.TreeEdge._comparison_key
nltk.parse.chart.TreeEdge.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.TreeEdge.from_production
nltk.parse.chart.TreeEdge.html#from_production
ZopeInterfaceFunction
Static Method
VISIBLE
No summary
-
nltk.parse.chart.TreeEdge.move_dot_forward
nltk.parse.chart.TreeEdge.html#move_dot_forward
ZopeInterfaceFunction
Method
VISIBLE
Return a new TreeEdge formed from this edge. The new edge's dot position is increased by 1, and its end index will be replaced by new_end.
-
nltk.parse.chart.TreeEdge.lhs
nltk.parse.chart.TreeEdge.html#lhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's left-hand side, which specifies what kind of structure is hypothesized by this edge.
-
nltk.parse.chart.TreeEdge.span
nltk.parse.chart.TreeEdge.html#span
ZopeInterfaceFunction
Method
VISIBLE
Return a tuple (s, e), where tokens[s:e] is the portion of the sentence that is consistent with this edge's structure.
-
nltk.parse.chart.TreeEdge.start
nltk.parse.chart.TreeEdge.html#start
ZopeInterfaceFunction
Method
VISIBLE
Return the start index of this edge's span.
-
nltk.parse.chart.TreeEdge.end
nltk.parse.chart.TreeEdge.html#end
ZopeInterfaceFunction
Method
VISIBLE
Return the end index of this edge's span.
-
nltk.parse.chart.TreeEdge.length
nltk.parse.chart.TreeEdge.html#length
ZopeInterfaceFunction
Method
VISIBLE
Return the length of this edge's span.
-
nltk.parse.chart.TreeEdge.rhs
nltk.parse.chart.TreeEdge.html#rhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's right-hand side, which specifies the content of the structure hypothesized by this edge.
-
nltk.parse.chart.TreeEdge.dot
nltk.parse.chart.TreeEdge.html#dot
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.TreeEdge.is_complete
nltk.parse.chart.TreeEdge.html#is_complete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is fully consistent with the text.
-
nltk.parse.chart.TreeEdge.is_incomplete
nltk.parse.chart.TreeEdge.html#is_incomplete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is partially consistent with the text.
-
nltk.parse.chart.TreeEdge.nextsym
nltk.parse.chart.TreeEdge.html#nextsym
ZopeInterfaceFunction
Method
VISIBLE
Return the element of this edge's right-hand side that immediately follows its dot.
-
nltk.parse.chart.TreeEdge.__str__
nltk.parse.chart.TreeEdge.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.TreeEdge.__repr__
nltk.parse.chart.TreeEdge.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.LeafEdge
nltk.parse.chart.LeafEdge.html
ZopeInterfaceClass
Class
VISIBLE
An edge that records the fact that a leaf value is consistent with a word in the sentence. A leaf edge consists of:
-
nltk.parse.chart.LeafEdge.__init__
nltk.parse.chart.LeafEdge.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new LeafEdge.
-
nltk.parse.chart.LeafEdge._leaf
nltk.parse.chart.LeafEdge.html#_leaf
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.LeafEdge._index
nltk.parse.chart.LeafEdge.html#_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.LeafEdge._comparison_key
nltk.parse.chart.LeafEdge.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.LeafEdge.lhs
nltk.parse.chart.LeafEdge.html#lhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's left-hand side, which specifies what kind of structure is hypothesized by this edge.
-
nltk.parse.chart.LeafEdge.span
nltk.parse.chart.LeafEdge.html#span
ZopeInterfaceFunction
Method
VISIBLE
Return a tuple (s, e), where tokens[s:e] is the portion of the sentence that is consistent with this edge's structure.
-
nltk.parse.chart.LeafEdge.start
nltk.parse.chart.LeafEdge.html#start
ZopeInterfaceFunction
Method
VISIBLE
Return the start index of this edge's span.
-
nltk.parse.chart.LeafEdge.end
nltk.parse.chart.LeafEdge.html#end
ZopeInterfaceFunction
Method
VISIBLE
Return the end index of this edge's span.
-
nltk.parse.chart.LeafEdge.length
nltk.parse.chart.LeafEdge.html#length
ZopeInterfaceFunction
Method
VISIBLE
Return the length of this edge's span.
-
nltk.parse.chart.LeafEdge.rhs
nltk.parse.chart.LeafEdge.html#rhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's right-hand side, which specifies the content of the structure hypothesized by this edge.
-
nltk.parse.chart.LeafEdge.dot
nltk.parse.chart.LeafEdge.html#dot
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.LeafEdge.is_complete
nltk.parse.chart.LeafEdge.html#is_complete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is fully consistent with the text.
-
nltk.parse.chart.LeafEdge.is_incomplete
nltk.parse.chart.LeafEdge.html#is_incomplete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is partially consistent with the text.
-
nltk.parse.chart.LeafEdge.nextsym
nltk.parse.chart.LeafEdge.html#nextsym
ZopeInterfaceFunction
Method
VISIBLE
Return the element of this edge's right-hand side that immediately follows its dot.
-
nltk.parse.chart.LeafEdge.__str__
nltk.parse.chart.LeafEdge.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.LeafEdge.__repr__
nltk.parse.chart.LeafEdge.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.Chart
nltk.parse.chart.Chart.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.Chart._tokens
nltk.parse.chart.Chart.html#_tokens
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The sentence that the chart covers.
-
nltk.parse.chart.Chart._num_leaves
nltk.parse.chart.Chart.html#_num_leaves
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The number of tokens.
-
nltk.parse.chart.Chart._edges
nltk.parse.chart.Chart.html#_edges
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of the edges in the chart
-
nltk.parse.chart.Chart._edge_to_cpls
nltk.parse.chart.Chart.html#_edge_to_cpls
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A dictionary mapping each edge to a set
of child pointer lists that are associated with that edge.
-
nltk.parse.chart.Chart._indexes
nltk.parse.chart.Chart.html#_indexes
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A dictionary mapping tuples of edge attributes
to indices, where each index maps the corresponding edge
attribute values to lists of edges.
-
nltk.parse.chart.Chart.__init__
nltk.parse.chart.Chart.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new chart. The chart is initialized with the leaf edges corresponding to the terminal leaves.
-
nltk.parse.chart.Chart.initialize
nltk.parse.chart.Chart.html#initialize
ZopeInterfaceFunction
Method
VISIBLE
Clear the chart.
-
nltk.parse.chart.Chart.num_leaves
nltk.parse.chart.Chart.html#num_leaves
ZopeInterfaceFunction
Method
VISIBLE
Return the number of words in this chart's sentence.
-
nltk.parse.chart.Chart.leaf
nltk.parse.chart.Chart.html#leaf
ZopeInterfaceFunction
Method
VISIBLE
Return the leaf value of the word at the given index.
-
nltk.parse.chart.Chart.leaves
nltk.parse.chart.Chart.html#leaves
ZopeInterfaceFunction
Method
VISIBLE
Return a list of the leaf values of each word in the chart's sentence.
-
nltk.parse.chart.Chart.edges
nltk.parse.chart.Chart.html#edges
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all edges in this chart. New edges that are added to the chart after the call to edges() will not be contained in this list.
-
nltk.parse.chart.Chart.iteredges
nltk.parse.chart.Chart.html#iteredges
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator over the edges in this chart. It is not guaranteed that new edges which are added to the chart before the iterator is exhausted will also be generated.
-
nltk.parse.chart.Chart.num_edges
nltk.parse.chart.Chart.html#num_edges
ZopeInterfaceFunction
Method
VISIBLE
Return the number of edges contained in this chart.
-
nltk.parse.chart.Chart.select
nltk.parse.chart.Chart.html#select
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.Chart._add_index
nltk.parse.chart.Chart.html#_add_index
ZopeInterfaceFunction
Method
PRIVATE
A helper function for select, which creates a new index for a given set of attributes (aka restriction keys).
-
nltk.parse.chart.Chart._register_with_indexes
nltk.parse.chart.Chart.html#_register_with_indexes
ZopeInterfaceFunction
Method
PRIVATE
A helper function for insert, which registers the new edge with all existing indexes.
-
nltk.parse.chart.Chart.insert_with_backpointer
nltk.parse.chart.Chart.html#insert_with_backpointer
ZopeInterfaceFunction
Method
VISIBLE
Add a new edge to the chart, using a pointer to the previous edge.
-
nltk.parse.chart.Chart.insert
nltk.parse.chart.Chart.html#insert
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.Chart._append_edge
nltk.parse.chart.Chart.html#_append_edge
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.chart.Chart.parses
nltk.parse.chart.Chart.html#parses
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator of the complete tree structures that span the entire chart, and whose root node is root.
-
nltk.parse.chart.Chart.trees
nltk.parse.chart.Chart.html#trees
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator of the tree structures that are associated with edge.
-
nltk.parse.chart.Chart._trees
nltk.parse.chart.Chart.html#_trees
ZopeInterfaceFunction
Method
PRIVATE
A helper function for trees.
-
nltk.parse.chart.Chart.child_pointer_lists
nltk.parse.chart.Chart.html#child_pointer_lists
ZopeInterfaceFunction
Method
VISIBLE
Return the set of child pointer lists for the given edge. Each child pointer list is a list of edges that have been used to form this edge.
-
nltk.parse.chart.Chart.pretty_format_edge
nltk.parse.chart.Chart.html#pretty_format_edge
ZopeInterfaceFunction
Method
VISIBLE
Return a pretty-printed string representation of a given edge in this chart.
-
nltk.parse.chart.Chart.pretty_format_leaves
nltk.parse.chart.Chart.html#pretty_format_leaves
ZopeInterfaceFunction
Method
VISIBLE
Return a pretty-printed string representation of this chart's leaves. This string can be used as a header for calls to pretty_format_edge.
-
nltk.parse.chart.Chart.pretty_format
nltk.parse.chart.Chart.html#pretty_format
ZopeInterfaceFunction
Method
VISIBLE
Return a pretty-printed string representation of this chart.
-
nltk.parse.chart.Chart.dot_digraph
nltk.parse.chart.Chart.html#dot_digraph
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.ChartRuleI
nltk.parse.chart.ChartRuleI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.ChartRuleI.NUM_EDGES
nltk.parse.chart.ChartRuleI.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
The number of existing edges that this rule uses
to license new edges. Typically, this number ranges from zero
to two.
-
nltk.parse.chart.ChartRuleI.apply
nltk.parse.chart.ChartRuleI.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.ChartRuleI.apply_everywhere
nltk.parse.chart.ChartRuleI.html#apply_everywhere
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.AbstractChartRule
nltk.parse.chart.AbstractChartRule.html
ZopeInterfaceClass
Class
VISIBLE
An abstract base class for chart rules. AbstractChartRule provides:
-
nltk.parse.chart.AbstractChartRule.apply
nltk.parse.chart.AbstractChartRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.AbstractChartRule.apply_everywhere
nltk.parse.chart.AbstractChartRule.html#apply_everywhere
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.AbstractChartRule.__str__
nltk.parse.chart.AbstractChartRule.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.FundamentalRule
nltk.parse.chart.FundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
A rule that joins two adjacent edges to form a single combined edge. In particular, this rule specifies that any pair of edges
-
nltk.parse.chart.FundamentalRule.NUM_EDGES
nltk.parse.chart.FundamentalRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.chart.FundamentalRule.apply
nltk.parse.chart.FundamentalRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.SingleEdgeFundamentalRule
nltk.parse.chart.SingleEdgeFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
A rule that joins a given edge with adjacent edges in the chart, to form combined edges. In particular, this rule specifies that either of the edges:
-
nltk.parse.chart.SingleEdgeFundamentalRule.NUM_EDGES
nltk.parse.chart.SingleEdgeFundamentalRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.chart.SingleEdgeFundamentalRule.apply
nltk.parse.chart.SingleEdgeFundamentalRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.SingleEdgeFundamentalRule._apply_complete
nltk.parse.chart.SingleEdgeFundamentalRule.html#_apply_complete
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.chart.SingleEdgeFundamentalRule._apply_incomplete
nltk.parse.chart.SingleEdgeFundamentalRule.html#_apply_incomplete
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.chart.LeafInitRule
nltk.parse.chart.LeafInitRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.chart.LeafInitRule.NUM_EDGES
nltk.parse.chart.LeafInitRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.chart.LeafInitRule.apply
nltk.parse.chart.LeafInitRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.TopDownInitRule
nltk.parse.chart.TopDownInitRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.TopDownInitRule.NUM_EDGES
nltk.parse.chart.TopDownInitRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.chart.TopDownInitRule.apply
nltk.parse.chart.TopDownInitRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.TopDownPredictRule
nltk.parse.chart.TopDownPredictRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.TopDownPredictRule.NUM_EDGES
nltk.parse.chart.TopDownPredictRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.chart.TopDownPredictRule.apply
nltk.parse.chart.TopDownPredictRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.CachedTopDownPredictRule
nltk.parse.chart.CachedTopDownPredictRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.CachedTopDownPredictRule.__init__
nltk.parse.chart.CachedTopDownPredictRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.chart.CachedTopDownPredictRule._done
nltk.parse.chart.CachedTopDownPredictRule.html#_done
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.CachedTopDownPredictRule.apply
nltk.parse.chart.CachedTopDownPredictRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.BottomUpPredictRule
nltk.parse.chart.BottomUpPredictRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.BottomUpPredictRule.NUM_EDGES
nltk.parse.chart.BottomUpPredictRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.chart.BottomUpPredictRule.apply
nltk.parse.chart.BottomUpPredictRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.BottomUpPredictCombineRule
nltk.parse.chart.BottomUpPredictCombineRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.BottomUpPredictCombineRule.NUM_EDGES
nltk.parse.chart.BottomUpPredictCombineRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.chart.BottomUpPredictCombineRule.apply
nltk.parse.chart.BottomUpPredictCombineRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.EmptyPredictRule
nltk.parse.chart.EmptyPredictRule.html
ZopeInterfaceClass
Class
VISIBLE
A rule that inserts all empty productions as passive edges, in every position in the chart.
-
nltk.parse.chart.EmptyPredictRule.NUM_EDGES
nltk.parse.chart.EmptyPredictRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.chart.EmptyPredictRule.apply
nltk.parse.chart.EmptyPredictRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.FilteredSingleEdgeFundamentalRule
nltk.parse.chart.FilteredSingleEdgeFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.chart.FilteredSingleEdgeFundamentalRule._apply_complete
nltk.parse.chart.FilteredSingleEdgeFundamentalRule.html#_apply_complete
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.chart.FilteredSingleEdgeFundamentalRule._apply_incomplete
nltk.parse.chart.FilteredSingleEdgeFundamentalRule.html#_apply_incomplete
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.chart.FilteredBottomUpPredictCombineRule
nltk.parse.chart.FilteredBottomUpPredictCombineRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.chart.FilteredBottomUpPredictCombineRule.apply
nltk.parse.chart.FilteredBottomUpPredictCombineRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart._bottomup_filter
nltk.parse.chart.html#_bottomup_filter
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.parse.chart.TD_STRATEGY
nltk.parse.chart.html#TD_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.chart.BU_STRATEGY
nltk.parse.chart.html#BU_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.chart.BU_LC_STRATEGY
nltk.parse.chart.html#BU_LC_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.chart.LC_STRATEGY
nltk.parse.chart.html#LC_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.chart.ChartParser
nltk.parse.chart.ChartParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.ChartParser.__init__
nltk.parse.chart.ChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.chart.ChartParser._grammar
nltk.parse.chart.ChartParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser._strategy
nltk.parse.chart.ChartParser.html#_strategy
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser._trace
nltk.parse.chart.ChartParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser._trace_chart_width
nltk.parse.chart.ChartParser.html#_trace_chart_width
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser._use_agenda
nltk.parse.chart.ChartParser.html#_use_agenda
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser._chart_class
nltk.parse.chart.ChartParser.html#_chart_class
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser._axioms
nltk.parse.chart.ChartParser.html#_axioms
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser._inference_rules
nltk.parse.chart.ChartParser.html#_inference_rules
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser.grammar
nltk.parse.chart.ChartParser.html#grammar
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.chart.ChartParser._trace_new_edges
nltk.parse.chart.ChartParser.html#_trace_new_edges
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.chart.ChartParser.chart_parse
nltk.parse.chart.ChartParser.html#chart_parse
ZopeInterfaceFunction
Method
VISIBLE
Return the final parse Chart from which all possible parse trees can be extracted.
-
nltk.parse.chart.ChartParser.parse
nltk.parse.chart.ChartParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.chart.TopDownChartParser
nltk.parse.chart.TopDownChartParser.html
ZopeInterfaceClass
Class
VISIBLE
A ChartParser using a top-down parsing strategy. See ChartParser for more information.
-
nltk.parse.chart.TopDownChartParser.__init__
nltk.parse.chart.TopDownChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.chart.BottomUpChartParser
nltk.parse.chart.BottomUpChartParser.html
ZopeInterfaceClass
Class
VISIBLE
A ChartParser using a bottom-up parsing strategy. See ChartParser for more information.
-
nltk.parse.chart.BottomUpChartParser.__init__
nltk.parse.chart.BottomUpChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.chart.BottomUpLeftCornerChartParser
nltk.parse.chart.BottomUpLeftCornerChartParser.html
ZopeInterfaceClass
Class
VISIBLE
A ChartParser using a bottom-up left-corner parsing strategy. This strategy is often more efficient than standard bottom-up. See ChartParser for more information.
-
nltk.parse.chart.BottomUpLeftCornerChartParser.__init__
nltk.parse.chart.BottomUpLeftCornerChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.chart.LeftCornerChartParser
nltk.parse.chart.LeftCornerChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.chart.LeftCornerChartParser.__init__
nltk.parse.chart.LeftCornerChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.chart.SteppingChartParser
nltk.parse.chart.SteppingChartParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.chart.SteppingChartParser._restart
nltk.parse.chart.SteppingChartParser.html#_restart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Records whether the parser's strategy, grammar,
or chart has been changed. If so, then step must restart
the parsing algorithm.
-
nltk.parse.chart.SteppingChartParser.__init__
nltk.parse.chart.SteppingChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.chart.SteppingChartParser._chart
nltk.parse.chart.SteppingChartParser.html#_chart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.SteppingChartParser._current_chartrule
nltk.parse.chart.SteppingChartParser.html#_current_chartrule
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.SteppingChartParser.initialize
nltk.parse.chart.SteppingChartParser.html#initialize
ZopeInterfaceFunction
Method
VISIBLE
Begin parsing the given tokens.
-
nltk.parse.chart.SteppingChartParser.step
nltk.parse.chart.SteppingChartParser.html#step
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.chart.SteppingChartParser._parse
nltk.parse.chart.SteppingChartParser.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
A generator that implements the actual parsing algorithm. step iterates through this generator, and restarts it whenever the parser's strategy, grammar, or chart is modified.
-
nltk.parse.chart.SteppingChartParser.strategy
nltk.parse.chart.SteppingChartParser.html#strategy
ZopeInterfaceFunction
Method
VISIBLE
Return the strategy used by this parser.
-
nltk.parse.chart.SteppingChartParser.grammar
nltk.parse.chart.SteppingChartParser.html#grammar
ZopeInterfaceFunction
Method
VISIBLE
Return the grammar used by this parser.
-
nltk.parse.chart.SteppingChartParser.chart
nltk.parse.chart.SteppingChartParser.html#chart
ZopeInterfaceFunction
Method
VISIBLE
Return the chart that is used by this parser.
-
nltk.parse.chart.SteppingChartParser.current_chartrule
nltk.parse.chart.SteppingChartParser.html#current_chartrule
ZopeInterfaceFunction
Method
VISIBLE
Return the chart rule used to generate the most recent edge.
-
nltk.parse.chart.SteppingChartParser.parses
nltk.parse.chart.SteppingChartParser.html#parses
ZopeInterfaceFunction
Method
VISIBLE
Return the parse trees currently contained in the chart.
-
nltk.parse.chart.SteppingChartParser.set_strategy
nltk.parse.chart.SteppingChartParser.html#set_strategy
ZopeInterfaceFunction
Method
VISIBLE
Change the strategy that the parser uses to decide which edges to add to the chart.
-
nltk.parse.chart.SteppingChartParser._strategy
nltk.parse.chart.SteppingChartParser.html#_strategy
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.SteppingChartParser.set_grammar
nltk.parse.chart.SteppingChartParser.html#set_grammar
ZopeInterfaceFunction
Method
VISIBLE
Change the grammar used by the parser.
-
nltk.parse.chart.SteppingChartParser._grammar
nltk.parse.chart.SteppingChartParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.chart.SteppingChartParser.set_chart
nltk.parse.chart.SteppingChartParser.html#set_chart
ZopeInterfaceFunction
Method
VISIBLE
Load a given chart into the chart parser.
-
nltk.parse.chart.SteppingChartParser.parse
nltk.parse.chart.SteppingChartParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.chart.demo_grammar
nltk.parse.chart.html#demo_grammar
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.chart.demo
nltk.parse.chart.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of the chart parsers.
-
nltk.draw.util.CanvasWidget
nltk.draw.util.CanvasWidget.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.__canvas
nltk.draw.util.CanvasWidget.html#__canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
This CanvasWidget's canvas.
-
nltk.draw.util.CanvasWidget.__parent
nltk.draw.util.CanvasWidget.html#__parent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
This CanvasWidget's hierarchical parent widget.
-
nltk.draw.util.CanvasWidget.__children
nltk.draw.util.CanvasWidget.html#__children
ZopeInterfaceAttribute
Instance Variable
PRIVATE
This CanvasWidget's hierarchical child widgets.
-
nltk.draw.util.CanvasWidget.__updating
nltk.draw.util.CanvasWidget.html#__updating
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Is this canvas widget currently performing an
update? If it is, then it will ignore any new update requests
from child widgets.
-
nltk.draw.util.CanvasWidget.__draggable
nltk.draw.util.CanvasWidget.html#__draggable
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Is this canvas widget draggable?
-
nltk.draw.util.CanvasWidget.__press
nltk.draw.util.CanvasWidget.html#__press
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The ButtonPress event that we're currently handling.
-
nltk.draw.util.CanvasWidget.__drag_x
nltk.draw.util.CanvasWidget.html#__drag_x
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Where it's been moved to (to find dx)
-
nltk.draw.util.CanvasWidget.__drag_y
nltk.draw.util.CanvasWidget.html#__drag_y
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Where it's been moved to (to find dy)
-
nltk.draw.util.CanvasWidget.__callbacks
nltk.draw.util.CanvasWidget.html#__callbacks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Registered callbacks. Currently, four keys are
used: 1, 2, 3, and 'drag'. The values are
callback functions. Each callback function takes a single
argument, which is the CanvasWidget that triggered the
callback.
-
nltk.draw.util.CanvasWidget.__init__
nltk.draw.util.CanvasWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.__hidden
nltk.draw.util.CanvasWidget.html#__hidden
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.CanvasWidget.bbox
nltk.draw.util.CanvasWidget.html#bbox
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.width
nltk.draw.util.CanvasWidget.html#width
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.CanvasWidget.height
nltk.draw.util.CanvasWidget.html#height
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.CanvasWidget.parent
nltk.draw.util.CanvasWidget.html#parent
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.child_widgets
nltk.draw.util.CanvasWidget.html#child_widgets
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.canvas
nltk.draw.util.CanvasWidget.html#canvas
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.CanvasWidget.move
nltk.draw.util.CanvasWidget.html#move
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.moveto
nltk.draw.util.CanvasWidget.html#moveto
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.destroy
nltk.draw.util.CanvasWidget.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Remove this CanvasWidget from its Canvas. After a CanvasWidget has been destroyed, it should not be accessed.
-
nltk.draw.util.CanvasWidget.update
nltk.draw.util.CanvasWidget.html#update
ZopeInterfaceFunction
Method
VISIBLE
Update the graphical display of this canvas widget, and all of its ancestors, in response to a change in one of this canvas widget's children.
-
nltk.draw.util.CanvasWidget.manage
nltk.draw.util.CanvasWidget.html#manage
ZopeInterfaceFunction
Method
VISIBLE
Arrange this canvas widget and all of its descendants.
-
nltk.draw.util.CanvasWidget.tags
nltk.draw.util.CanvasWidget.html#tags
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.__setitem__
nltk.draw.util.CanvasWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.util.CanvasWidget.__getitem__
nltk.draw.util.CanvasWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasWidget.__repr__
nltk.draw.util.CanvasWidget.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.CanvasWidget.hide
nltk.draw.util.CanvasWidget.html#hide
ZopeInterfaceFunction
Method
VISIBLE
Temporarily hide this canvas widget.
-
nltk.draw.util.CanvasWidget.show
nltk.draw.util.CanvasWidget.html#show
ZopeInterfaceFunction
Method
VISIBLE
Show a hidden canvas widget.
-
nltk.draw.util.CanvasWidget.hidden
nltk.draw.util.CanvasWidget.html#hidden
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.CanvasWidget.bind_click
nltk.draw.util.CanvasWidget.html#bind_click
ZopeInterfaceFunction
Method
VISIBLE
Register a new callback that will be called whenever this CanvasWidget is clicked on.
-
nltk.draw.util.CanvasWidget.bind_drag
nltk.draw.util.CanvasWidget.html#bind_drag
ZopeInterfaceFunction
Method
VISIBLE
Register a new callback that will be called after this CanvasWidget is dragged. This implicitly makes this CanvasWidget draggable.
-
nltk.draw.util.CanvasWidget.unbind_click
nltk.draw.util.CanvasWidget.html#unbind_click
ZopeInterfaceFunction
Method
VISIBLE
Remove a callback that was registered with bind_click.
-
nltk.draw.util.CanvasWidget.unbind_drag
nltk.draw.util.CanvasWidget.html#unbind_drag
ZopeInterfaceFunction
Method
VISIBLE
Remove a callback that was registered with bind_drag.
-
nltk.draw.util.CanvasWidget.__press_cb
nltk.draw.util.CanvasWidget.html#__press_cb
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.CanvasWidget.__start_drag
nltk.draw.util.CanvasWidget.html#__start_drag
ZopeInterfaceFunction
Method
PRIVATE
Begin dragging this object: - register a motion callback - record the drag coordinates
-
nltk.draw.util.CanvasWidget.__motion_cb
nltk.draw.util.CanvasWidget.html#__motion_cb
ZopeInterfaceFunction
Method
PRIVATE
Handle a motion event: - move this object to the new location - record the new drag coordinates
-
nltk.draw.util.CanvasWidget.__release_cb
nltk.draw.util.CanvasWidget.html#__release_cb
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.CanvasWidget.__drag
nltk.draw.util.CanvasWidget.html#__drag
ZopeInterfaceFunction
Method
PRIVATE
If this CanvasWidget has a drag callback, then call it; otherwise, find the closest ancestor with a drag callback, and call it. If no ancestors have a drag callback, do nothing.
-
nltk.draw.util.CanvasWidget.__click
nltk.draw.util.CanvasWidget.html#__click
ZopeInterfaceFunction
Method
PRIVATE
If this CanvasWidget has a drag callback, then call it; otherwise, find the closest ancestor with a click callback, and call it. If no ancestors have a click callback, do nothing.
-
nltk.draw.util.CanvasWidget._add_child_widget
nltk.draw.util.CanvasWidget.html#_add_child_widget
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.CanvasWidget._remove_child_widget
nltk.draw.util.CanvasWidget.html#_remove_child_widget
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.CanvasWidget._tags
nltk.draw.util.CanvasWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.CanvasWidget._manage
nltk.draw.util.CanvasWidget.html#_manage
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.CanvasWidget._update
nltk.draw.util.CanvasWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.util.TextWidget
nltk.draw.util.TextWidget.html
ZopeInterfaceClass
Class
VISIBLE
A canvas widget that displays a single string of text.
-
nltk.draw.util.TextWidget.__init__
nltk.draw.util.TextWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new text widget.
-
nltk.draw.util.TextWidget._text
nltk.draw.util.TextWidget.html#_text
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.TextWidget._tag
nltk.draw.util.TextWidget.html#_tag
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.TextWidget.__setitem__
nltk.draw.util.TextWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.util.TextWidget.__getitem__
nltk.draw.util.TextWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.TextWidget._tags
nltk.draw.util.TextWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.TextWidget.text
nltk.draw.util.TextWidget.html#text
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.TextWidget.set_text
nltk.draw.util.TextWidget.html#set_text
ZopeInterfaceFunction
Method
VISIBLE
Change the text that is displayed by this text widget.
-
nltk.draw.util.TextWidget.__repr__
nltk.draw.util.TextWidget.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.SymbolWidget
nltk.draw.util.SymbolWidget.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.util.SymbolWidget.SYMBOLS
nltk.draw.util.SymbolWidget.html#SYMBOLS
ZopeInterfaceAttribute
Class Variable
VISIBLE
A dictionary mapping from symbols to the character
in the symbol font used to render them.
-
nltk.draw.util.SymbolWidget.__init__
nltk.draw.util.SymbolWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new symbol widget.
-
nltk.draw.util.SymbolWidget.symbol
nltk.draw.util.SymbolWidget.html#symbol
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.SymbolWidget.set_symbol
nltk.draw.util.SymbolWidget.html#set_symbol
ZopeInterfaceFunction
Method
VISIBLE
Change the symbol that is displayed by this symbol widget.
-
nltk.draw.util.SymbolWidget._symbol
nltk.draw.util.SymbolWidget.html#_symbol
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.SymbolWidget.__repr__
nltk.draw.util.SymbolWidget.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.SymbolWidget.symbolsheet
nltk.draw.util.SymbolWidget.html#symbolsheet
ZopeInterfaceFunction
Static Method
VISIBLE
Open a new Tkinter window that displays the entire alphabet for the symbol font. This is useful for constructing the SymbolWidget.SYMBOLS dictionary.
-
nltk.draw.util.AbstractContainerWidget
nltk.draw.util.AbstractContainerWidget.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.util.AbstractContainerWidget.__init__
nltk.draw.util.AbstractContainerWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new container widget. This constructor should only be called by subclass constructors.
-
nltk.draw.util.AbstractContainerWidget._child
nltk.draw.util.AbstractContainerWidget.html#_child
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.AbstractContainerWidget._manage
nltk.draw.util.AbstractContainerWidget.html#_manage
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.AbstractContainerWidget.child
nltk.draw.util.AbstractContainerWidget.html#child
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.AbstractContainerWidget.set_child
nltk.draw.util.AbstractContainerWidget.html#set_child
ZopeInterfaceFunction
Method
VISIBLE
Change the child widget contained by this container widget.
-
nltk.draw.util.AbstractContainerWidget.__repr__
nltk.draw.util.AbstractContainerWidget.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.BoxWidget
nltk.draw.util.BoxWidget.html
ZopeInterfaceClass
Class
VISIBLE
A canvas widget that places a box around a child widget.
-
nltk.draw.util.BoxWidget.__init__
nltk.draw.util.BoxWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new box widget.
-
nltk.draw.util.BoxWidget._child
nltk.draw.util.BoxWidget.html#_child
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.BoxWidget._margin
nltk.draw.util.BoxWidget.html#_margin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.BoxWidget._box
nltk.draw.util.BoxWidget.html#_box
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.BoxWidget.__setitem__
nltk.draw.util.BoxWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.util.BoxWidget.__getitem__
nltk.draw.util.BoxWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.BoxWidget._update
nltk.draw.util.BoxWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.util.BoxWidget._tags
nltk.draw.util.BoxWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.OvalWidget
nltk.draw.util.OvalWidget.html
ZopeInterfaceClass
Class
VISIBLE
A canvas widget that places a oval around a child widget.
-
nltk.draw.util.OvalWidget.__init__
nltk.draw.util.OvalWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new oval widget.
-
nltk.draw.util.OvalWidget._child
nltk.draw.util.OvalWidget.html#_child
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.OvalWidget._margin
nltk.draw.util.OvalWidget.html#_margin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.OvalWidget._oval
nltk.draw.util.OvalWidget.html#_oval
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.OvalWidget._circle
nltk.draw.util.OvalWidget.html#_circle
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.OvalWidget._double
nltk.draw.util.OvalWidget.html#_double
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.OvalWidget._oval2
nltk.draw.util.OvalWidget.html#_oval2
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.OvalWidget.__setitem__
nltk.draw.util.OvalWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.util.OvalWidget.__getitem__
nltk.draw.util.OvalWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.OvalWidget.RATIO
nltk.draw.util.OvalWidget.html#RATIO
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.draw.util.OvalWidget._update
nltk.draw.util.OvalWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.util.OvalWidget._tags
nltk.draw.util.OvalWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.ParenWidget
nltk.draw.util.ParenWidget.html
ZopeInterfaceClass
Class
VISIBLE
A canvas widget that places a pair of parenthases around a child widget.
-
nltk.draw.util.ParenWidget.__init__
nltk.draw.util.ParenWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new parenthasis widget.
-
nltk.draw.util.ParenWidget._child
nltk.draw.util.ParenWidget.html#_child
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ParenWidget._oparen
nltk.draw.util.ParenWidget.html#_oparen
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ParenWidget._cparen
nltk.draw.util.ParenWidget.html#_cparen
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ParenWidget.__setitem__
nltk.draw.util.ParenWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.util.ParenWidget.__getitem__
nltk.draw.util.ParenWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.ParenWidget._update
nltk.draw.util.ParenWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.util.ParenWidget._tags
nltk.draw.util.ParenWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.BracketWidget
nltk.draw.util.BracketWidget.html
ZopeInterfaceClass
Class
VISIBLE
A canvas widget that places a pair of brackets around a child widget.
-
nltk.draw.util.BracketWidget.__init__
nltk.draw.util.BracketWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new bracket widget.
-
nltk.draw.util.BracketWidget._child
nltk.draw.util.BracketWidget.html#_child
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.BracketWidget._obrack
nltk.draw.util.BracketWidget.html#_obrack
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.BracketWidget._cbrack
nltk.draw.util.BracketWidget.html#_cbrack
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.BracketWidget.__setitem__
nltk.draw.util.BracketWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.util.BracketWidget.__getitem__
nltk.draw.util.BracketWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.BracketWidget._update
nltk.draw.util.BracketWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.util.BracketWidget._tags
nltk.draw.util.BracketWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.SequenceWidget
nltk.draw.util.SequenceWidget.html
ZopeInterfaceClass
Class
VISIBLE
A canvas widget that keeps a list of canvas widgets in a horizontal line.
-
nltk.draw.util.SequenceWidget.__init__
nltk.draw.util.SequenceWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new sequence widget.
-
nltk.draw.util.SequenceWidget._align
nltk.draw.util.SequenceWidget.html#_align
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.SequenceWidget._space
nltk.draw.util.SequenceWidget.html#_space
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.SequenceWidget._ordered
nltk.draw.util.SequenceWidget.html#_ordered
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.SequenceWidget._children
nltk.draw.util.SequenceWidget.html#_children
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.SequenceWidget.__setitem__
nltk.draw.util.SequenceWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.util.SequenceWidget.__getitem__
nltk.draw.util.SequenceWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.SequenceWidget._tags
nltk.draw.util.SequenceWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.SequenceWidget._yalign
nltk.draw.util.SequenceWidget.html#_yalign
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.SequenceWidget._update
nltk.draw.util.SequenceWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.util.SequenceWidget._manage
nltk.draw.util.SequenceWidget.html#_manage
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.SequenceWidget.__repr__
nltk.draw.util.SequenceWidget.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.SequenceWidget.replace_child
nltk.draw.util.SequenceWidget.html#replace_child
ZopeInterfaceFunction
Method
VISIBLE
Replace the child canvas widget oldchild with newchild. newchild must not have a parent. oldchild's parent will be set to None.
-
nltk.draw.util.SequenceWidget.remove_child
nltk.draw.util.SequenceWidget.html#remove_child
ZopeInterfaceFunction
Method
VISIBLE
Remove the given child canvas widget. child's parent will be set ot None.
-
nltk.draw.util.SequenceWidget.insert_child
nltk.draw.util.SequenceWidget.html#insert_child
ZopeInterfaceFunction
Method
VISIBLE
Insert a child canvas widget before a given index.
-
nltk.draw.util.StackWidget
nltk.draw.util.StackWidget.html
ZopeInterfaceClass
Class
VISIBLE
A canvas widget that keeps a list of canvas widgets in a vertical line.
-
nltk.draw.util.StackWidget.__init__
nltk.draw.util.StackWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new stack widget.
-
nltk.draw.util.StackWidget._align
nltk.draw.util.StackWidget.html#_align
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.StackWidget._space
nltk.draw.util.StackWidget.html#_space
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.StackWidget._ordered
nltk.draw.util.StackWidget.html#_ordered
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.StackWidget._children
nltk.draw.util.StackWidget.html#_children
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.StackWidget.__setitem__
nltk.draw.util.StackWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.util.StackWidget.__getitem__
nltk.draw.util.StackWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.StackWidget._tags
nltk.draw.util.StackWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.StackWidget._xalign
nltk.draw.util.StackWidget.html#_xalign
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.StackWidget._update
nltk.draw.util.StackWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.util.StackWidget._manage
nltk.draw.util.StackWidget.html#_manage
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.StackWidget.__repr__
nltk.draw.util.StackWidget.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.StackWidget.replace_child
nltk.draw.util.StackWidget.html#replace_child
ZopeInterfaceFunction
Method
VISIBLE
Replace the child canvas widget oldchild with newchild. newchild must not have a parent. oldchild's parent will be set to None.
-
nltk.draw.util.StackWidget.remove_child
nltk.draw.util.StackWidget.html#remove_child
ZopeInterfaceFunction
Method
VISIBLE
Remove the given child canvas widget. child's parent will be set ot None.
-
nltk.draw.util.StackWidget.insert_child
nltk.draw.util.StackWidget.html#insert_child
ZopeInterfaceFunction
Method
VISIBLE
Insert a child canvas widget before a given index.
-
nltk.draw.util.SpaceWidget
nltk.draw.util.SpaceWidget.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.util.SpaceWidget.__init__
nltk.draw.util.SpaceWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new space widget.
-
nltk.draw.util.SpaceWidget._tag
nltk.draw.util.SpaceWidget.html#_tag
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.SpaceWidget.set_width
nltk.draw.util.SpaceWidget.html#set_width
ZopeInterfaceFunction
Method
VISIBLE
Change the width of this space widget.
-
nltk.draw.util.SpaceWidget.set_height
nltk.draw.util.SpaceWidget.html#set_height
ZopeInterfaceFunction
Method
VISIBLE
Change the height of this space widget.
-
nltk.draw.util.SpaceWidget._tags
nltk.draw.util.SpaceWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.SpaceWidget.__repr__
nltk.draw.util.SpaceWidget.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.ScrollWatcherWidget
nltk.draw.util.ScrollWatcherWidget.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.util.ScrollWatcherWidget.__init__
nltk.draw.util.ScrollWatcherWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new scroll-watcher widget.
-
nltk.draw.util.ScrollWatcherWidget.add_child
nltk.draw.util.ScrollWatcherWidget.html#add_child
ZopeInterfaceFunction
Method
VISIBLE
Add a new canvas widget to the scroll-watcher. The scroll-watcher will ensure that the new canvas widget is always contained in its canvas's scrollregion.
-
nltk.draw.util.ScrollWatcherWidget.remove_child
nltk.draw.util.ScrollWatcherWidget.html#remove_child
ZopeInterfaceFunction
Method
VISIBLE
Remove a canvas widget from the scroll-watcher. The scroll-watcher will no longer ensure that the new canvas widget is always contained in its canvas's scrollregion.
-
nltk.draw.util.ScrollWatcherWidget._tags
nltk.draw.util.ScrollWatcherWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.ScrollWatcherWidget._update
nltk.draw.util.ScrollWatcherWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.util.ScrollWatcherWidget._adjust_scrollregion
nltk.draw.util.ScrollWatcherWidget.html#_adjust_scrollregion
ZopeInterfaceFunction
Method
PRIVATE
Adjust the scrollregion of this scroll-watcher's Canvas to include the bounding boxes of all of its children.
-
nltk.draw.util.CanvasFrame
nltk.draw.util.CanvasFrame.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.util.CanvasFrame.__init__
nltk.draw.util.CanvasFrame.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new CanvasFrame.
-
nltk.draw.util.CanvasFrame._parent
nltk.draw.util.CanvasFrame.html#_parent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.CanvasFrame._frame
nltk.draw.util.CanvasFrame.html#_frame
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.CanvasFrame._canvas
nltk.draw.util.CanvasFrame.html#_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.CanvasFrame._scrollwatcher
nltk.draw.util.CanvasFrame.html#_scrollwatcher
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.CanvasFrame.print_to_file
nltk.draw.util.CanvasFrame.html#print_to_file
ZopeInterfaceFunction
Method
VISIBLE
Print the contents of this CanvasFrame to a postscript file. If no filename is given, then prompt the user for one.
-
nltk.draw.util.CanvasFrame.scrollregion
nltk.draw.util.CanvasFrame.html#scrollregion
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.CanvasFrame.canvas
nltk.draw.util.CanvasFrame.html#canvas
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.CanvasFrame.add_widget
nltk.draw.util.CanvasFrame.html#add_widget
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.CanvasFrame._find_room
nltk.draw.util.CanvasFrame.html#_find_room
ZopeInterfaceFunction
Method
PRIVATE
Try to find a space for a given widget.
-
nltk.draw.util.CanvasFrame.destroy_widget
nltk.draw.util.CanvasFrame.html#destroy_widget
ZopeInterfaceFunction
Method
VISIBLE
Remove a canvas widget from this CanvasFrame. This deregisters the canvas widget, and destroys it.
-
nltk.draw.util.CanvasFrame.remove_widget
nltk.draw.util.CanvasFrame.html#remove_widget
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.util.CanvasFrame.pack
nltk.draw.util.CanvasFrame.html#pack
ZopeInterfaceFunction
Method
VISIBLE
Pack this CanvasFrame. See the documentation for Tkinter.Pack for more information.
-
nltk.draw.util.CanvasFrame.destroy
nltk.draw.util.CanvasFrame.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Destroy this CanvasFrame. If this CanvasFrame created a top-level window, then this will close that window.
-
nltk.draw.util.CanvasFrame.mainloop
nltk.draw.util.CanvasFrame.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.ShowText
nltk.draw.util.ShowText.html
ZopeInterfaceClass
Class
VISIBLE
A Tkinter window used to display a text. ShowText is typically used by graphical tools to display help text, or similar information.
-
nltk.draw.util.ShowText.__init__
nltk.draw.util.ShowText.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.util.ShowText._top
nltk.draw.util.ShowText.html#_top
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ShowText.find_dimentions
nltk.draw.util.ShowText.html#find_dimentions
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.util.ShowText.destroy
nltk.draw.util.ShowText.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.util.ShowText.mainloop
nltk.draw.util.ShowText.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.EntryDialog
nltk.draw.util.EntryDialog.html
ZopeInterfaceClass
Class
VISIBLE
A dialog box for entering
-
nltk.draw.util.EntryDialog.__init__
nltk.draw.util.EntryDialog.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.util.EntryDialog._parent
nltk.draw.util.EntryDialog.html#_parent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._original_text
nltk.draw.util.EntryDialog.html#_original_text
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._set_callback
nltk.draw.util.EntryDialog.html#_set_callback
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._top
nltk.draw.util.EntryDialog.html#_top
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._entry
nltk.draw.util.EntryDialog.html#_entry
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._reset
nltk.draw.util.EntryDialog.html#_reset
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._cancel
nltk.draw.util.EntryDialog.html#_cancel
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._ok
nltk.draw.util.EntryDialog.html#_ok
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._apply
nltk.draw.util.EntryDialog.html#_apply
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.EntryDialog._destroy
nltk.draw.util.EntryDialog.html#_destroy
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList
nltk.draw.util.ColorizedList.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.util.ColorizedList.__init__
nltk.draw.util.ColorizedList.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new list.
-
nltk.draw.util.ColorizedList._parent
nltk.draw.util.ColorizedList.html#_parent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._callbacks
nltk.draw.util.ColorizedList.html#_callbacks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._marks
nltk.draw.util.ColorizedList.html#_marks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._items
nltk.draw.util.ColorizedList.html#_items
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._init_colortags
nltk.draw.util.ColorizedList.html#_init_colortags
ZopeInterfaceFunction
Method
PRIVATE
Set up any colortags that will be used by this colorized list. E.g.: >>> textwidget.tag_config('terminal', foreground='black')
-
nltk.draw.util.ColorizedList._item_repr
nltk.draw.util.ColorizedList.html#_item_repr
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.util.ColorizedList.get
nltk.draw.util.ColorizedList.html#get
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.util.ColorizedList.set
nltk.draw.util.ColorizedList.html#set
ZopeInterfaceFunction
Method
VISIBLE
Modify the list of items contained by this list.
-
nltk.draw.util.ColorizedList.unmark
nltk.draw.util.ColorizedList.html#unmark
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.util.ColorizedList.mark
nltk.draw.util.ColorizedList.html#mark
ZopeInterfaceFunction
Method
VISIBLE
Highlight the given item. :raise ValueError: If item is not contained in the list.
-
nltk.draw.util.ColorizedList.markonly
nltk.draw.util.ColorizedList.html#markonly
ZopeInterfaceFunction
Method
VISIBLE
Remove any current highlighting, and mark the given item. :raise ValueError: If item is not contained in the list.
-
nltk.draw.util.ColorizedList.view
nltk.draw.util.ColorizedList.html#view
ZopeInterfaceFunction
Method
VISIBLE
Adjust the view such that the given item is visible. If the item is already visible, then do nothing.
-
nltk.draw.util.ColorizedList.add_callback
nltk.draw.util.ColorizedList.html#add_callback
ZopeInterfaceFunction
Method
VISIBLE
Register a callback function with the list. This function will be called whenever the given event occurs.
-
nltk.draw.util.ColorizedList.remove_callback
nltk.draw.util.ColorizedList.html#remove_callback
ZopeInterfaceFunction
Method
VISIBLE
Deregister a callback function. If func is none, then all callbacks are removed for the given event.
-
nltk.draw.util.ColorizedList.pack
nltk.draw.util.ColorizedList.html#pack
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.util.ColorizedList.grid
nltk.draw.util.ColorizedList.html#grid
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.util.ColorizedList.focus
nltk.draw.util.ColorizedList.html#focus
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.util.ColorizedList._init_itemframe
nltk.draw.util.ColorizedList.html#_init_itemframe
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._itemframe
nltk.draw.util.ColorizedList.html#_itemframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._textwidget
nltk.draw.util.ColorizedList.html#_textwidget
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._textscroll
nltk.draw.util.ColorizedList.html#_textscroll
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._fire_callback
nltk.draw.util.ColorizedList.html#_fire_callback
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._buttonpress
nltk.draw.util.ColorizedList.html#_buttonpress
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.ColorizedList._keypress
nltk.draw.util.ColorizedList.html#_keypress
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.util.demo
nltk.draw.util.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A simple demonstration showing how to use canvas widgets.
-
nltk.draw.tree.TreeSegmentWidget
nltk.draw.tree.TreeSegmentWidget.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.tree.TreeSegmentWidget.__init__
nltk.draw.tree.TreeSegmentWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.tree.TreeSegmentWidget._label
nltk.draw.tree.TreeSegmentWidget.html#_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._subtrees
nltk.draw.tree.TreeSegmentWidget.html#_subtrees
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._horizontal
nltk.draw.tree.TreeSegmentWidget.html#_horizontal
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._roof
nltk.draw.tree.TreeSegmentWidget.html#_roof
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._xspace
nltk.draw.tree.TreeSegmentWidget.html#_xspace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._yspace
nltk.draw.tree.TreeSegmentWidget.html#_yspace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._ordered
nltk.draw.tree.TreeSegmentWidget.html#_ordered
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._lines
nltk.draw.tree.TreeSegmentWidget.html#_lines
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._polygon
nltk.draw.tree.TreeSegmentWidget.html#_polygon
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._managing
nltk.draw.tree.TreeSegmentWidget.html#_managing
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget.__setitem__
nltk.draw.tree.TreeSegmentWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.tree.TreeSegmentWidget.__getitem__
nltk.draw.tree.TreeSegmentWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.tree.TreeSegmentWidget.label
nltk.draw.tree.TreeSegmentWidget.html#label
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget.subtrees
nltk.draw.tree.TreeSegmentWidget.html#subtrees
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget.set_label
nltk.draw.tree.TreeSegmentWidget.html#set_label
ZopeInterfaceFunction
Method
VISIBLE
Set the node label to label.
-
nltk.draw.tree.TreeSegmentWidget.replace_child
nltk.draw.tree.TreeSegmentWidget.html#replace_child
ZopeInterfaceFunction
Method
VISIBLE
Replace the child oldchild with newchild.
-
nltk.draw.tree.TreeSegmentWidget.remove_child
nltk.draw.tree.TreeSegmentWidget.html#remove_child
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget.insert_child
nltk.draw.tree.TreeSegmentWidget.html#insert_child
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._tags
nltk.draw.tree.TreeSegmentWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.tree.TreeSegmentWidget._subtree_top
nltk.draw.tree.TreeSegmentWidget.html#_subtree_top
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._node_bottom
nltk.draw.tree.TreeSegmentWidget.html#_node_bottom
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._update
nltk.draw.tree.TreeSegmentWidget.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Update this canvas widget in response to a change in one of its children.
-
nltk.draw.tree.TreeSegmentWidget._maintain_order
nltk.draw.tree.TreeSegmentWidget.html#_maintain_order
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._maintain_order_vertical
nltk.draw.tree.TreeSegmentWidget.html#_maintain_order_vertical
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._maintain_order_horizontal
nltk.draw.tree.TreeSegmentWidget.html#_maintain_order_horizontal
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._manage_horizontal
nltk.draw.tree.TreeSegmentWidget.html#_manage_horizontal
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._manage_vertical
nltk.draw.tree.TreeSegmentWidget.html#_manage_vertical
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeSegmentWidget._manage
nltk.draw.tree.TreeSegmentWidget.html#_manage
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.tree.TreeSegmentWidget.__repr__
nltk.draw.tree.TreeSegmentWidget.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.tree._tree_to_treeseg
nltk.draw.tree.html#_tree_to_treeseg
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.draw.tree.tree_to_treesegment
nltk.draw.tree.html#tree_to_treesegment
ZopeInterfaceFunction
Function
VISIBLE
Convert a Tree into a TreeSegmentWidget.
-
nltk.draw.tree.TreeWidget
nltk.draw.tree.TreeWidget.html
ZopeInterfaceClass
Class
VISIBLE
A canvas widget that displays a single Tree. TreeWidget manages a group of TreeSegmentWidgets that are used to display a Tree.
-
nltk.draw.tree.TreeWidget.__init__
nltk.draw.tree.TreeWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.tree.TreeWidget._make_node
nltk.draw.tree.TreeWidget.html#_make_node
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._make_leaf
nltk.draw.tree.TreeWidget.html#_make_leaf
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._tree
nltk.draw.tree.TreeWidget.html#_tree
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._nodeattribs
nltk.draw.tree.TreeWidget.html#_nodeattribs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._leafattribs
nltk.draw.tree.TreeWidget.html#_leafattribs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._locattribs
nltk.draw.tree.TreeWidget.html#_locattribs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._line_color
nltk.draw.tree.TreeWidget.html#_line_color
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._line_width
nltk.draw.tree.TreeWidget.html#_line_width
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._roof_color
nltk.draw.tree.TreeWidget.html#_roof_color
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._roof_fill
nltk.draw.tree.TreeWidget.html#_roof_fill
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._shapeable
nltk.draw.tree.TreeWidget.html#_shapeable
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._xspace
nltk.draw.tree.TreeWidget.html#_xspace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._yspace
nltk.draw.tree.TreeWidget.html#_yspace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._orientation
nltk.draw.tree.TreeWidget.html#_orientation
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._ordered
nltk.draw.tree.TreeWidget.html#_ordered
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._keys
nltk.draw.tree.TreeWidget.html#_keys
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._expanded_trees
nltk.draw.tree.TreeWidget.html#_expanded_trees
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._collapsed_trees
nltk.draw.tree.TreeWidget.html#_collapsed_trees
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._nodes
nltk.draw.tree.TreeWidget.html#_nodes
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._leaves
nltk.draw.tree.TreeWidget.html#_leaves
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._treeseg
nltk.draw.tree.TreeWidget.html#_treeseg
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget.expanded_tree
nltk.draw.tree.TreeWidget.html#expanded_tree
ZopeInterfaceFunction
Method
VISIBLE
Return the TreeSegmentWidget for the specified subtree.
-
nltk.draw.tree.TreeWidget.collapsed_tree
nltk.draw.tree.TreeWidget.html#collapsed_tree
ZopeInterfaceFunction
Method
VISIBLE
Return the TreeSegmentWidget for the specified subtree.
-
nltk.draw.tree.TreeWidget.bind_click_trees
nltk.draw.tree.TreeWidget.html#bind_click_trees
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to all tree segments.
-
nltk.draw.tree.TreeWidget.bind_drag_trees
nltk.draw.tree.TreeWidget.html#bind_drag_trees
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to all tree segments.
-
nltk.draw.tree.TreeWidget.bind_click_leaves
nltk.draw.tree.TreeWidget.html#bind_click_leaves
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to all leaves.
-
nltk.draw.tree.TreeWidget.bind_drag_leaves
nltk.draw.tree.TreeWidget.html#bind_drag_leaves
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to all leaves.
-
nltk.draw.tree.TreeWidget.bind_click_nodes
nltk.draw.tree.TreeWidget.html#bind_click_nodes
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to all nodes.
-
nltk.draw.tree.TreeWidget.bind_drag_nodes
nltk.draw.tree.TreeWidget.html#bind_drag_nodes
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to all nodes.
-
nltk.draw.tree.TreeWidget._make_collapsed_trees
nltk.draw.tree.TreeWidget.html#_make_collapsed_trees
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget._make_expanded_tree
nltk.draw.tree.TreeWidget.html#_make_expanded_tree
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeWidget.__setitem__
nltk.draw.tree.TreeWidget.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.
-
nltk.draw.tree.TreeWidget.__getitem__
nltk.draw.tree.TreeWidget.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.tree.TreeWidget._tags
nltk.draw.tree.TreeWidget.html#_tags
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.tree.TreeWidget._manage
nltk.draw.tree.TreeWidget.html#_manage
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.tree.TreeWidget.toggle_collapsed
nltk.draw.tree.TreeWidget.html#toggle_collapsed
ZopeInterfaceFunction
Method
VISIBLE
Collapse/expand a tree.
-
nltk.draw.tree.TreeView
nltk.draw.tree.TreeView.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/6 instance variable, 1/6 method documented
-
nltk.draw.tree.TreeView.__init__
nltk.draw.tree.TreeView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.tree.TreeView._trees
nltk.draw.tree.TreeView.html#_trees
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeView._top
nltk.draw.tree.TreeView.html#_top
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeView._cframe
nltk.draw.tree.TreeView.html#_cframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeView._size
nltk.draw.tree.TreeView.html#_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeView._width
nltk.draw.tree.TreeView.html#_width
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeView._widgets
nltk.draw.tree.TreeView.html#_widgets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.tree.TreeView._layout
nltk.draw.tree.TreeView.html#_layout
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.tree.TreeView.resize
nltk.draw.tree.TreeView.html#resize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.tree.TreeView.destroy
nltk.draw.tree.TreeView.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.tree.TreeView.mainloop
nltk.draw.tree.TreeView.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.tree.draw_trees
nltk.draw.tree.html#draw_trees
ZopeInterfaceFunction
Function
VISIBLE
Open a new window containing a graphical diagram of the given trees.
-
nltk.draw.tree.demo
nltk.draw.tree.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.draw.cfg.ProductionList
nltk.draw.cfg.ProductionList.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.draw.cfg.ProductionList.ARROW
nltk.draw.cfg.ProductionList.html#ARROW
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.draw.cfg.ProductionList._init_colortags
nltk.draw.cfg.ProductionList.html#_init_colortags
ZopeInterfaceFunction
Method
PRIVATE
Set up any colortags that will be used by this colorized list. E.g.: >>> textwidget.tag_config('terminal', foreground='black')
-
nltk.draw.cfg.ProductionList._item_repr
nltk.draw.cfg.ProductionList.html#_item_repr
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.cfg._CFGEditor_HELP
nltk.draw.cfg.html#_CFGEditor_HELP
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor
nltk.draw.cfg.CFGEditor.html
ZopeInterfaceClass
Class
VISIBLE
A dialog window for creating and editing context free grammars. CFGEditor imposes the following restrictions:
-
nltk.draw.cfg.CFGEditor.ARROW
nltk.draw.cfg.CFGEditor.html#ARROW
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.draw.cfg.CFGEditor._LHS_RE
nltk.draw.cfg.CFGEditor.html#_LHS_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._ARROW_RE
nltk.draw.cfg.CFGEditor.html#_ARROW_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._PRODUCTION_RE
nltk.draw.cfg.CFGEditor.html#_PRODUCTION_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._TOKEN_RE
nltk.draw.cfg.CFGEditor.html#_TOKEN_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._BOLD
nltk.draw.cfg.CFGEditor.html#_BOLD
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor.__init__
nltk.draw.cfg.CFGEditor.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.cfg.CFGEditor._parent
nltk.draw.cfg.CFGEditor.html#_parent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._cfg
nltk.draw.cfg.CFGEditor.html#_cfg
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._set_cfg_callback
nltk.draw.cfg.CFGEditor.html#_set_cfg_callback
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._highlight_matching_nonterminals
nltk.draw.cfg.CFGEditor.html#_highlight_matching_nonterminals
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._top
nltk.draw.cfg.CFGEditor.html#_top
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._init_startframe
nltk.draw.cfg.CFGEditor.html#_init_startframe
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._startframe
nltk.draw.cfg.CFGEditor.html#_startframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._start
nltk.draw.cfg.CFGEditor.html#_start
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._init_buttons
nltk.draw.cfg.CFGEditor.html#_init_buttons
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._buttonframe
nltk.draw.cfg.CFGEditor.html#_buttonframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._init_bindings
nltk.draw.cfg.CFGEditor.html#_init_bindings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._init_prodframe
nltk.draw.cfg.CFGEditor.html#_init_prodframe
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._prodframe
nltk.draw.cfg.CFGEditor.html#_prodframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._textwidget
nltk.draw.cfg.CFGEditor.html#_textwidget
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._textscroll
nltk.draw.cfg.CFGEditor.html#_textscroll
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._linenum
nltk.draw.cfg.CFGEditor.html#_linenum
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._clear_tags
nltk.draw.cfg.CFGEditor.html#_clear_tags
ZopeInterfaceFunction
Method
PRIVATE
Remove all tags (except arrow and sel) from the given line of the text widget used for editing the productions.
-
nltk.draw.cfg.CFGEditor._check_analyze
nltk.draw.cfg.CFGEditor.html#_check_analyze
ZopeInterfaceFunction
Method
PRIVATE
Check if we've moved to a new line. If we have, then remove all colorization from the line we moved to, and re-colorize the line that we moved from.
-
nltk.draw.cfg.CFGEditor._replace_arrows
nltk.draw.cfg.CFGEditor.html#_replace_arrows
ZopeInterfaceFunction
Method
PRIVATE
Replace any '->' text strings with arrows (char 256, in symbol font). This searches the whole buffer, but is fast enough to be done anytime they press '>'.
-
nltk.draw.cfg.CFGEditor._analyze_token
nltk.draw.cfg.CFGEditor.html#_analyze_token
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.cfg.CFGEditor._init_nonterminal_tag
nltk.draw.cfg.CFGEditor.html#_init_nonterminal_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._analyze_line
nltk.draw.cfg.CFGEditor.html#_analyze_line
ZopeInterfaceFunction
Method
PRIVATE
Colorize a given line.
-
nltk.draw.cfg.CFGEditor._mark_error
nltk.draw.cfg.CFGEditor.html#_mark_error
ZopeInterfaceFunction
Method
PRIVATE
Mark the location of an error in a line.
-
nltk.draw.cfg.CFGEditor._analyze
nltk.draw.cfg.CFGEditor.html#_analyze
ZopeInterfaceFunction
Method
PRIVATE
Replace -> with arrows, and colorize the entire buffer.
-
nltk.draw.cfg.CFGEditor._parse_productions
nltk.draw.cfg.CFGEditor.html#_parse_productions
ZopeInterfaceFunction
Method
PRIVATE
Parse the current contents of the textwidget buffer, to create a list of productions.
-
nltk.draw.cfg.CFGEditor._destroy
nltk.draw.cfg.CFGEditor.html#_destroy
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._ok
nltk.draw.cfg.CFGEditor.html#_ok
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._apply
nltk.draw.cfg.CFGEditor.html#_apply
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._reset
nltk.draw.cfg.CFGEditor.html#_reset
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._cancel
nltk.draw.cfg.CFGEditor.html#_cancel
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGEditor._help
nltk.draw.cfg.CFGEditor.html#_help
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo
nltk.draw.cfg.CFGDemo.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.draw.cfg.CFGDemo.__init__
nltk.draw.cfg.CFGDemo.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.cfg.CFGDemo._grammar
nltk.draw.cfg.CFGDemo.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._text
nltk.draw.cfg.CFGDemo.html#_text
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._top
nltk.draw.cfg.CFGDemo.html#_top
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._size
nltk.draw.cfg.CFGDemo.html#_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._init_bindings
nltk.draw.cfg.CFGDemo.html#_init_bindings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._init_buttons
nltk.draw.cfg.CFGDemo.html#_init_buttons
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._init_grammar
nltk.draw.cfg.CFGDemo.html#_init_grammar
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._prodlist
nltk.draw.cfg.CFGDemo.html#_prodlist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._init_treelet
nltk.draw.cfg.CFGDemo.html#_init_treelet
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._treelet_canvas
nltk.draw.cfg.CFGDemo.html#_treelet_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._treelet
nltk.draw.cfg.CFGDemo.html#_treelet
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._init_workspace
nltk.draw.cfg.CFGDemo.html#_init_workspace
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._workspace
nltk.draw.cfg.CFGDemo.html#_workspace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._tree
nltk.draw.cfg.CFGDemo.html#_tree
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo.reset_workspace
nltk.draw.cfg.CFGDemo.html#reset_workspace
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.cfg.CFGDemo.workspace_markprod
nltk.draw.cfg.CFGDemo.html#workspace_markprod
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.cfg.CFGDemo._markproduction
nltk.draw.cfg.CFGDemo.html#_markproduction
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo._selectprod_cb
nltk.draw.cfg.CFGDemo.html#_selectprod_cb
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.cfg.CFGDemo.destroy
nltk.draw.cfg.CFGDemo.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.cfg.CFGDemo.mainloop
nltk.draw.cfg.CFGDemo.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.cfg.demo2
nltk.draw.cfg.html#demo2
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.draw.cfg.demo
nltk.draw.cfg.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.draw.cfg.demo3
nltk.draw.cfg.html#demo3
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox
nltk.draw.table.MultiListbox.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.draw.table.MultiListbox.FRAME_CONFIG
nltk.draw.table.MultiListbox.html#FRAME_CONFIG
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.LABEL_CONFIG
nltk.draw.table.MultiListbox.html#LABEL_CONFIG
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.LISTBOX_CONFIG
nltk.draw.table.MultiListbox.html#LISTBOX_CONFIG
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.__init__
nltk.draw.table.MultiListbox.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new multi-column listbox widget.
-
nltk.draw.table.MultiListbox._column_names
nltk.draw.table.MultiListbox.html#_column_names
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox._listboxes
nltk.draw.table.MultiListbox.html#_listboxes
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox._labels
nltk.draw.table.MultiListbox.html#_labels
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox._column_weights
nltk.draw.table.MultiListbox.html#_column_weights
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox._resize_column
nltk.draw.table.MultiListbox.html#_resize_column
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.table.MultiListbox._resize_column_index
nltk.draw.table.MultiListbox.html#_resize_column_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox._resize_column_motion_cb
nltk.draw.table.MultiListbox.html#_resize_column_motion_cb
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox._resize_column_buttonrelease_cb
nltk.draw.table.MultiListbox.html#_resize_column_buttonrelease_cb
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox.column_names
nltk.draw.table.MultiListbox.html#column_names
ZopeInterfaceAttribute
Property
VISIBLE
A tuple containing the names of the columns used by this multi-column listbox.
-
nltk.draw.table.MultiListbox.column_labels
nltk.draw.table.MultiListbox.html#column_labels
ZopeInterfaceAttribute
Property
VISIBLE
No summary
-
nltk.draw.table.MultiListbox.listboxes
nltk.draw.table.MultiListbox.html#listboxes
ZopeInterfaceAttribute
Property
VISIBLE
No summary
-
nltk.draw.table.MultiListbox._select
nltk.draw.table.MultiListbox.html#_select
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox._scroll
nltk.draw.table.MultiListbox.html#_scroll
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.table.MultiListbox._pagesize
nltk.draw.table.MultiListbox.html#_pagesize
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.draw.table.MultiListbox.select
nltk.draw.table.MultiListbox.html#select
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.table.MultiListbox.configure
nltk.draw.table.MultiListbox.html#configure
ZopeInterfaceFunction
Method
VISIBLE
Configure this widget. Use label_* to configure all labels; and listbox_* to configure all listboxes. E.g.:
-
nltk.draw.table.MultiListbox.__setitem__
nltk.draw.table.MultiListbox.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Configure this widget. This is equivalent to self.configure({key,val)}. See configure().
-
nltk.draw.table.MultiListbox.rowconfigure
nltk.draw.table.MultiListbox.html#rowconfigure
ZopeInterfaceFunction
Method
VISIBLE
Configure all table cells in the given row. Valid keyword arguments are: background, bg, foreground, fg, selectbackground, selectforeground.
-
nltk.draw.table.MultiListbox.columnconfigure
nltk.draw.table.MultiListbox.html#columnconfigure
ZopeInterfaceFunction
Method
VISIBLE
Configure all table cells in the given column. Valid keyword arguments are: background, bg, foreground, fg, selectbackground, selectforeground.
-
nltk.draw.table.MultiListbox.itemconfigure
nltk.draw.table.MultiListbox.html#itemconfigure
ZopeInterfaceFunction
Method
VISIBLE
Configure the table cell at the given row and column. Valid keyword arguments are: background, bg, foreground, fg, selectbackground, selectforeground.
-
nltk.draw.table.MultiListbox.insert
nltk.draw.table.MultiListbox.html#insert
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.table.MultiListbox.get
nltk.draw.table.MultiListbox.html#get
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.table.MultiListbox.bbox
nltk.draw.table.MultiListbox.html#bbox
ZopeInterfaceFunction
Method
VISIBLE
Return the bounding box for the given table cell, relative to this widget's top-left corner. The bounding box is a tuple of integers (left, top, width, height).
-
nltk.draw.table.MultiListbox.hide_column
nltk.draw.table.MultiListbox.html#hide_column
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.table.MultiListbox.show_column
nltk.draw.table.MultiListbox.html#show_column
ZopeInterfaceFunction
Method
VISIBLE
Display a column that has been hidden using hide_column(). It is safe to call this on a column that is not hidden.
-
nltk.draw.table.MultiListbox.bind_to_labels
nltk.draw.table.MultiListbox.html#bind_to_labels
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to each Tkinter.Label widget in this mult-column listbox that will call func in response to the event sequence.
-
nltk.draw.table.MultiListbox.bind_to_listboxes
nltk.draw.table.MultiListbox.html#bind_to_listboxes
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to each Tkinter.Listbox widget in this mult-column listbox that will call func in response to the event sequence.
-
nltk.draw.table.MultiListbox.bind_to_columns
nltk.draw.table.MultiListbox.html#bind_to_columns
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to each Tkinter.Label and Tkinter.Listbox widget in this mult-column listbox that will call func in response to the event sequence.
-
nltk.draw.table.MultiListbox.curselection
nltk.draw.table.MultiListbox.html#curselection
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.selection_includes
nltk.draw.table.MultiListbox.html#selection_includes
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.itemcget
nltk.draw.table.MultiListbox.html#itemcget
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.size
nltk.draw.table.MultiListbox.html#size
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.index
nltk.draw.table.MultiListbox.html#index
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.nearest
nltk.draw.table.MultiListbox.html#nearest
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.activate
nltk.draw.table.MultiListbox.html#activate
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.delete
nltk.draw.table.MultiListbox.html#delete
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.scan_mark
nltk.draw.table.MultiListbox.html#scan_mark
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.scan_dragto
nltk.draw.table.MultiListbox.html#scan_dragto
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.see
nltk.draw.table.MultiListbox.html#see
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.selection_anchor
nltk.draw.table.MultiListbox.html#selection_anchor
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.selection_clear
nltk.draw.table.MultiListbox.html#selection_clear
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.selection_set
nltk.draw.table.MultiListbox.html#selection_set
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.yview
nltk.draw.table.MultiListbox.html#yview
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.yview_moveto
nltk.draw.table.MultiListbox.html#yview_moveto
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.MultiListbox.yview_scroll
nltk.draw.table.MultiListbox.html#yview_scroll
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.draw.table.Table
nltk.draw.table.Table.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.draw.table.Table._mlb
nltk.draw.table.Table.html#_mlb
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The multi-column listbox used to display this table's data.
-
nltk.draw.table.Table._rows
nltk.draw.table.Table.html#_rows
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list-of-lists used to hold the cell values of this
table. Each element of _rows is a row value, i.e., a list of
cell values, one for each column in the row.
-
nltk.draw.table.Table.__init__
nltk.draw.table.Table.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Table widget.
-
nltk.draw.table.Table._num_columns
nltk.draw.table.Table.html#_num_columns
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.Table._reprfunc
nltk.draw.table.Table.html#_reprfunc
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.Table._frame
nltk.draw.table.Table.html#_frame
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.Table._column_name_to_index
nltk.draw.table.Table.html#_column_name_to_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.Table._scrollbar
nltk.draw.table.Table.html#_scrollbar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.Table._sortkey
nltk.draw.table.Table.html#_sortkey
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.draw.table.Table.pack
nltk.draw.table.Table.html#pack
ZopeInterfaceFunction
Method
VISIBLE
Position this table's main frame widget in its parent widget. See Tkinter.Frame.pack() for more info.
-
nltk.draw.table.Table.grid
nltk.draw.table.Table.html#grid
ZopeInterfaceFunction
Method
VISIBLE
Position this table's main frame widget in its parent widget. See Tkinter.Frame.grid() for more info.
-
nltk.draw.table.Table.focus
nltk.draw.table.Table.html#focus
ZopeInterfaceFunction
Method
VISIBLE
Direct (keyboard) input foxus to this widget.
-
nltk.draw.table.Table.bind
nltk.draw.table.Table.html#bind
ZopeInterfaceFunction
Method
VISIBLE
Add a binding to this table's main frame that will call func in response to the event sequence.
-
nltk.draw.table.Table.rowconfigure
nltk.draw.table.Table.html#rowconfigure
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.columnconfigure
nltk.draw.table.Table.html#columnconfigure
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.itemconfigure
nltk.draw.table.Table.html#itemconfigure
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.bind_to_labels
nltk.draw.table.Table.html#bind_to_labels
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.bind_to_listboxes
nltk.draw.table.Table.html#bind_to_listboxes
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.bind_to_columns
nltk.draw.table.Table.html#bind_to_columns
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.insert
nltk.draw.table.Table.html#insert
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.table.Table.extend
nltk.draw.table.Table.html#extend
ZopeInterfaceFunction
Method
VISIBLE
Add new rows at the end of the table.
-
nltk.draw.table.Table.append
nltk.draw.table.Table.html#append
ZopeInterfaceFunction
Method
VISIBLE
Add a new row to the end of the table.
-
nltk.draw.table.Table.clear
nltk.draw.table.Table.html#clear
ZopeInterfaceFunction
Method
VISIBLE
Delete all rows in this table.
-
nltk.draw.table.Table.__getitem__
nltk.draw.table.Table.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.table.Table.__setitem__
nltk.draw.table.Table.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Replace the value of a row or a cell in this table with val.
-
nltk.draw.table.Table.__delitem__
nltk.draw.table.Table.html#__delitem__
ZopeInterfaceFunction
Method
VISIBLE
Delete the ``row_index``th row from this table.
-
nltk.draw.table.Table.__len__
nltk.draw.table.Table.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table._checkrow
nltk.draw.table.Table.html#_checkrow
ZopeInterfaceFunction
Method
PRIVATE
Helper function: check that a given row value has the correct number of elements; and if not, raise an exception.
-
nltk.draw.table.Table.column_names
nltk.draw.table.Table.html#column_names
ZopeInterfaceAttribute
Property
VISIBLE
A list of the names of the columns in this table.
-
nltk.draw.table.Table.column_index
nltk.draw.table.Table.html#column_index
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.draw.table.Table.hide_column
nltk.draw.table.Table.html#hide_column
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.show_column
nltk.draw.table.Table.html#show_column
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.selected_row
nltk.draw.table.Table.html#selected_row
ZopeInterfaceFunction
Method
VISIBLE
Return the index of the currently selected row, or None if no row is selected. To get the row value itself, use table[table.selected_row()].
-
nltk.draw.table.Table.select
nltk.draw.table.Table.html#select
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.draw.table.Table.sort_by
nltk.draw.table.Table.html#sort_by
ZopeInterfaceFunction
Method
VISIBLE
Sort the rows in this table, using the specified column's values as a sort key.
-
nltk.draw.table.Table._sort
nltk.draw.table.Table.html#_sort
ZopeInterfaceFunction
Method
PRIVATE
Event handler for clicking on a column label -- sort by that column.
-
nltk.draw.table.Table._fill_table
nltk.draw.table.Table.html#_fill_table
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.table.Table._get_itemconfig
nltk.draw.table.Table.html#_get_itemconfig
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.draw.table.Table._save_config_info
nltk.draw.table.Table.html#_save_config_info
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.table.Table._restore_config_info
nltk.draw.table.Table.html#_restore_config_info
ZopeInterfaceFunction
Method
PRIVATE
Restore selection & color configuration information that was saved using _save_config_info.
-
nltk.draw.table.Table._DEBUG
nltk.draw.table.Table.html#_DEBUG
ZopeInterfaceAttribute
Class Variable
PRIVATE
If true, then run _check_table_vs_mlb() after any operation that modifies the table.
-
nltk.draw.table.Table._check_table_vs_mlb
nltk.draw.table.Table.html#_check_table_vs_mlb
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.draw.table.demo
nltk.draw.table.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.draw.dispersion.dispersion_plot
nltk.draw.dispersion.html#dispersion_plot
ZopeInterfaceFunction
Function
VISIBLE
Generate a lexical dispersion plot.
-
nltk.version_file
nltk.html#version_file
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__version__
nltk.html#__version__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__copyright__
nltk.html#__copyright__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__license__
nltk.html#__license__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__longdescr__
nltk.html#__longdescr__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__keywords__
nltk.html#__keywords__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__url__
nltk.html#__url__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__maintainer__
nltk.html#__maintainer__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__maintainer_email__
nltk.html#__maintainer_email__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.__classifiers__
nltk.html#__classifiers__
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk._fake_PIPE
nltk.html#_fake_PIPE
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk._fake_Popen
nltk.html#_fake_Popen
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.metrics.scores.betai
nltk.metrics.scores.html#betai
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.scores.accuracy
nltk.metrics.scores.html#accuracy
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.scores.precision
nltk.metrics.scores.html#precision
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.scores.recall
nltk.metrics.scores.html#recall
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.scores.f_measure
nltk.metrics.scores.html#f_measure
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.scores.log_likelihood
nltk.metrics.scores.html#log_likelihood
ZopeInterfaceFunction
Function
VISIBLE
Given a list of reference values and a corresponding list of test probability distributions, return the average log likelihood of the reference values, given the probability distributions.
-
nltk.metrics.scores.approxrand
nltk.metrics.scores.html#approxrand
ZopeInterfaceFunction
Function
VISIBLE
Returns an approximate significance level between two lists of independently generated test values.
-
nltk.metrics.scores.demo
nltk.metrics.scores.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix
nltk.metrics.confusionmatrix.ConfusionMatrix.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.metrics.confusionmatrix.ConfusionMatrix.__init__
nltk.metrics.confusionmatrix.ConfusionMatrix.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new confusion matrix from a list of reference values and a corresponding list of test values.
-
nltk.metrics.confusionmatrix.ConfusionMatrix._values
nltk.metrics.confusionmatrix.ConfusionMatrix.html#_values
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix._indices
nltk.metrics.confusionmatrix.ConfusionMatrix.html#_indices
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix._confusion
nltk.metrics.confusionmatrix.ConfusionMatrix.html#_confusion
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix._max_conf
nltk.metrics.confusionmatrix.ConfusionMatrix.html#_max_conf
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix._total
nltk.metrics.confusionmatrix.ConfusionMatrix.html#_total
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix._correct
nltk.metrics.confusionmatrix.ConfusionMatrix.html#_correct
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix.__getitem__
nltk.metrics.confusionmatrix.ConfusionMatrix.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.metrics.confusionmatrix.ConfusionMatrix.__repr__
nltk.metrics.confusionmatrix.ConfusionMatrix.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix.__str__
nltk.metrics.confusionmatrix.ConfusionMatrix.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.confusionmatrix.ConfusionMatrix.pretty_format
nltk.metrics.confusionmatrix.ConfusionMatrix.html#pretty_format
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.metrics.confusionmatrix.ConfusionMatrix.key
nltk.metrics.confusionmatrix.ConfusionMatrix.html#key
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.confusionmatrix.demo
nltk.metrics.confusionmatrix.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.metrics.distance._edit_dist_init
nltk.metrics.distance.html#_edit_dist_init
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.metrics.distance._edit_dist_step
nltk.metrics.distance.html#_edit_dist_step
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.metrics.distance.edit_distance
nltk.metrics.distance.html#edit_distance
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.distance._edit_dist_backtrace
nltk.metrics.distance.html#_edit_dist_backtrace
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.metrics.distance.edit_distance_align
nltk.metrics.distance.html#edit_distance_align
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.distance.binary_distance
nltk.metrics.distance.html#binary_distance
ZopeInterfaceFunction
Function
VISIBLE
Simple equality test.
-
nltk.metrics.distance.jaccard_distance
nltk.metrics.distance.html#jaccard_distance
ZopeInterfaceFunction
Function
VISIBLE
Distance metric comparing set-similarity.
-
nltk.metrics.distance.masi_distance
nltk.metrics.distance.html#masi_distance
ZopeInterfaceFunction
Function
VISIBLE
Distance metric that takes into account partial agreement when multiple labels are assigned.
-
nltk.metrics.distance.interval_distance
nltk.metrics.distance.html#interval_distance
ZopeInterfaceFunction
Function
VISIBLE
Krippendorff's interval distance metric
-
nltk.metrics.distance.presence
nltk.metrics.distance.html#presence
ZopeInterfaceFunction
Function
VISIBLE
Higher-order function to test presence of a given label
-
nltk.metrics.distance.fractional_presence
nltk.metrics.distance.html#fractional_presence
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.metrics.distance.custom_distance
nltk.metrics.distance.html#custom_distance
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.metrics.distance.jaro_similarity
nltk.metrics.distance.html#jaro_similarity
ZopeInterfaceFunction
Function
VISIBLE
Computes the Jaro similarity between 2 sequences from:
-
nltk.metrics.distance.jaro_winkler_similarity
nltk.metrics.distance.html#jaro_winkler_similarity
ZopeInterfaceFunction
Function
VISIBLE
The Jaro Winkler distance is an extension of the Jaro similarity in:
-
nltk.metrics.distance.demo
nltk.metrics.distance.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.metrics.paice.get_words_from_dictionary
nltk.metrics.paice.html#get_words_from_dictionary
ZopeInterfaceFunction
Function
VISIBLE
Get original set of words used for analysis.
-
nltk.metrics.paice._truncate
nltk.metrics.paice.html#_truncate
ZopeInterfaceFunction
Function
PRIVATE
Group words by stems defined by truncating them at given length.
-
nltk.metrics.paice._count_intersection
nltk.metrics.paice.html#_count_intersection
ZopeInterfaceFunction
Function
PRIVATE
Count intersection between two line segments defined by coordinate pairs.
-
nltk.metrics.paice._get_derivative
nltk.metrics.paice.html#_get_derivative
ZopeInterfaceFunction
Function
PRIVATE
Get derivative of the line from (0,0) to given coordinates.
-
nltk.metrics.paice._calculate_cut
nltk.metrics.paice.html#_calculate_cut
ZopeInterfaceFunction
Function
PRIVATE
Count understemmed and overstemmed pairs for (lemma, stem) pair with common words.
-
nltk.metrics.paice._calculate
nltk.metrics.paice.html#_calculate
ZopeInterfaceFunction
Function
PRIVATE
Calculate actual and maximum possible amounts of understemmed and overstemmed word pairs.
-
nltk.metrics.paice._indexes
nltk.metrics.paice.html#_indexes
ZopeInterfaceFunction
Function
PRIVATE
Count Understemming Index (UI), Overstemming Index (OI) and Stemming Weight (SW).
-
nltk.metrics.paice.Paice
nltk.metrics.paice.Paice.html
ZopeInterfaceClass
Class
VISIBLE
Class for storing lemmas, stems and evaluation metrics.
-
nltk.metrics.paice.Paice.__init__
nltk.metrics.paice.Paice.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.metrics.paice.Paice.lemmas
nltk.metrics.paice.Paice.html#lemmas
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.stems
nltk.metrics.paice.Paice.html#stems
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.coords
nltk.metrics.paice.Paice.html#coords
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.gumt
nltk.metrics.paice.Paice.html#gumt
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.gdmt
nltk.metrics.paice.Paice.html#gdmt
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.gwmt
nltk.metrics.paice.Paice.html#gwmt
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.gdnt
nltk.metrics.paice.Paice.html#gdnt
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.ui
nltk.metrics.paice.Paice.html#ui
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.oi
nltk.metrics.paice.Paice.html#oi
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.sw
nltk.metrics.paice.Paice.html#sw
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.errt
nltk.metrics.paice.Paice.html#errt
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice.__str__
nltk.metrics.paice.Paice.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.paice.Paice._get_truncation_indexes
nltk.metrics.paice.Paice.html#_get_truncation_indexes
ZopeInterfaceFunction
Method
PRIVATE
Count (UI, OI) when stemming is done by truncating words at 'cutlength'.
-
nltk.metrics.paice.Paice._get_truncation_coordinates
nltk.metrics.paice.Paice.html#_get_truncation_coordinates
ZopeInterfaceFunction
Method
PRIVATE
Count (UI, OI) pairs for truncation points until we find the segment where (ui, oi) crosses the truncation line.
-
nltk.metrics.paice.Paice._errt
nltk.metrics.paice.Paice.html#_errt
ZopeInterfaceFunction
Method
PRIVATE
Count Error-Rate Relative to Truncation (ERRT).
-
nltk.metrics.paice.Paice.update
nltk.metrics.paice.Paice.html#update
ZopeInterfaceFunction
Method
VISIBLE
Update statistics after lemmas and stems have been set.
-
nltk.metrics.paice.demo
nltk.metrics.paice.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Demonstration of the module.
-
nltk.metrics.segmentation.windowdiff
nltk.metrics.segmentation.html#windowdiff
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.segmentation._init_mat
nltk.metrics.segmentation.html#_init_mat
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.metrics.segmentation._ghd_aux
nltk.metrics.segmentation.html#_ghd_aux
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.metrics.segmentation.ghd
nltk.metrics.segmentation.html#ghd
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.segmentation.pk
nltk.metrics.segmentation.html#pk
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.agreement.log
nltk.metrics.agreement.html#log
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask
nltk.metrics.agreement.AnnotationTask.html
ZopeInterfaceClass
Class
VISIBLE
Represents an annotation task, i.e. people assign labels to items.
-
nltk.metrics.agreement.AnnotationTask.__init__
nltk.metrics.agreement.AnnotationTask.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize an annotation task.
-
nltk.metrics.agreement.AnnotationTask.distance
nltk.metrics.agreement.AnnotationTask.html#distance
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.I
nltk.metrics.agreement.AnnotationTask.html#I
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.K
nltk.metrics.agreement.AnnotationTask.html#K
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.C
nltk.metrics.agreement.AnnotationTask.html#C
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.data
nltk.metrics.agreement.AnnotationTask.html#data
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.__str__
nltk.metrics.agreement.AnnotationTask.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.load_array
nltk.metrics.agreement.AnnotationTask.html#load_array
ZopeInterfaceFunction
Method
VISIBLE
Load an sequence of annotation results, appending to any data already loaded.
-
nltk.metrics.agreement.AnnotationTask.agr
nltk.metrics.agreement.AnnotationTask.html#agr
ZopeInterfaceFunction
Method
VISIBLE
Agreement between two coders on a given item
-
nltk.metrics.agreement.AnnotationTask.Nk
nltk.metrics.agreement.AnnotationTask.html#Nk
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.Nik
nltk.metrics.agreement.AnnotationTask.html#Nik
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.Nck
nltk.metrics.agreement.AnnotationTask.html#Nck
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.N
nltk.metrics.agreement.AnnotationTask.html#N
ZopeInterfaceFunction
Method
VISIBLE
Implements the "n-notation" used in Artstein and Poesio (2007)
-
nltk.metrics.agreement.AnnotationTask._grouped_data
nltk.metrics.agreement.AnnotationTask.html#_grouped_data
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.Ao
nltk.metrics.agreement.AnnotationTask.html#Ao
ZopeInterfaceFunction
Method
VISIBLE
Observed agreement between two coders on all items.
-
nltk.metrics.agreement.AnnotationTask._pairwise_average
nltk.metrics.agreement.AnnotationTask.html#_pairwise_average
ZopeInterfaceFunction
Method
PRIVATE
Calculates the average of function results for each coder pair
-
nltk.metrics.agreement.AnnotationTask.avg_Ao
nltk.metrics.agreement.AnnotationTask.html#avg_Ao
ZopeInterfaceFunction
Method
VISIBLE
Average observed agreement across all coders and items.
-
nltk.metrics.agreement.AnnotationTask.Do_Kw_pairwise
nltk.metrics.agreement.AnnotationTask.html#Do_Kw_pairwise
ZopeInterfaceFunction
Method
VISIBLE
The observed disagreement for the weighted kappa coefficient.
-
nltk.metrics.agreement.AnnotationTask.Do_Kw
nltk.metrics.agreement.AnnotationTask.html#Do_Kw
ZopeInterfaceFunction
Method
VISIBLE
Averaged over all labelers
-
nltk.metrics.agreement.AnnotationTask.S
nltk.metrics.agreement.AnnotationTask.html#S
ZopeInterfaceFunction
Method
VISIBLE
Bennett, Albert and Goldstein 1954
-
nltk.metrics.agreement.AnnotationTask.pi
nltk.metrics.agreement.AnnotationTask.html#pi
ZopeInterfaceFunction
Method
VISIBLE
Scott 1955; here, multi-pi. Equivalent to K from Siegel and Castellan (1988).
-
nltk.metrics.agreement.AnnotationTask.Ae_kappa
nltk.metrics.agreement.AnnotationTask.html#Ae_kappa
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.kappa_pairwise
nltk.metrics.agreement.AnnotationTask.html#kappa_pairwise
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.metrics.agreement.AnnotationTask.kappa
nltk.metrics.agreement.AnnotationTask.html#kappa
ZopeInterfaceFunction
Method
VISIBLE
Cohen 1960 Averages naively over kappas for each coder pair.
-
nltk.metrics.agreement.AnnotationTask.multi_kappa
nltk.metrics.agreement.AnnotationTask.html#multi_kappa
ZopeInterfaceFunction
Method
VISIBLE
Davies and Fleiss 1982 Averages over observed and expected agreements for each coder pair.
-
nltk.metrics.agreement.AnnotationTask.Disagreement
nltk.metrics.agreement.AnnotationTask.html#Disagreement
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.metrics.agreement.AnnotationTask.alpha
nltk.metrics.agreement.AnnotationTask.html#alpha
ZopeInterfaceFunction
Method
VISIBLE
Krippendorff 1980
-
nltk.metrics.agreement.AnnotationTask.weighted_kappa_pairwise
nltk.metrics.agreement.AnnotationTask.html#weighted_kappa_pairwise
ZopeInterfaceFunction
Method
VISIBLE
Cohen 1968
-
nltk.metrics.agreement.AnnotationTask.weighted_kappa
nltk.metrics.agreement.AnnotationTask.html#weighted_kappa
ZopeInterfaceFunction
Method
VISIBLE
Cohen 1968
-
nltk.metrics.agreement.parser
nltk.metrics.agreement.html#parser
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.options
nltk.metrics.agreement.html#options
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.remainder
nltk.metrics.agreement.html#remainder
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.data
nltk.metrics.agreement.html#data
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.toks
nltk.metrics.agreement.html#toks
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.coder
nltk.metrics.agreement.html#coder
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.object_
nltk.metrics.agreement.html#object_
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.labels
nltk.metrics.agreement.html#labels
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.agreement.task
nltk.metrics.agreement.html#task
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.association._log2
nltk.metrics.association.html#_log2
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.metrics.association._product
nltk.metrics.association.html#_product
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.metrics.association._SMALL
nltk.metrics.association.html#_SMALL
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.metrics.association.fisher_exact
nltk.metrics.association.html#fisher_exact
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.metrics.association.NGRAM
nltk.metrics.association.html#NGRAM
ZopeInterfaceAttribute
Variable
VISIBLE
Marginals index for the ngram count
-
nltk.metrics.association.UNIGRAMS
nltk.metrics.association.html#UNIGRAMS
ZopeInterfaceAttribute
Variable
VISIBLE
Marginals index for a tuple of each unigram count
-
nltk.metrics.association.TOTAL
nltk.metrics.association.html#TOTAL
ZopeInterfaceAttribute
Variable
VISIBLE
Marginals index for the number of words in the data
-
nltk.metrics.association.NgramAssocMeasures
nltk.metrics.association.NgramAssocMeasures.html
ZopeInterfaceClass
Class
VISIBLE
An abstract class defining a collection of generic association measures. Each public method returns a score, taking the following arguments:
-
nltk.metrics.association.NgramAssocMeasures._n
nltk.metrics.association.NgramAssocMeasures.html#_n
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.metrics.association.NgramAssocMeasures._contingency
nltk.metrics.association.NgramAssocMeasures.html#_contingency
ZopeInterfaceFunction
Static Method
PRIVATE
Calculates values of a contingency table from marginal values.
-
nltk.metrics.association.NgramAssocMeasures._marginals
nltk.metrics.association.NgramAssocMeasures.html#_marginals
ZopeInterfaceFunction
Static Method
PRIVATE
Calculates values of contingency table marginals from its values.
-
nltk.metrics.association.NgramAssocMeasures._expected_values
nltk.metrics.association.NgramAssocMeasures.html#_expected_values
ZopeInterfaceFunction
Class Method
PRIVATE
Calculates expected values for a contingency table.
-
nltk.metrics.association.NgramAssocMeasures.raw_freq
nltk.metrics.association.NgramAssocMeasures.html#raw_freq
ZopeInterfaceFunction
Static Method
VISIBLE
Scores ngrams by their frequency
-
nltk.metrics.association.NgramAssocMeasures.student_t
nltk.metrics.association.NgramAssocMeasures.html#student_t
ZopeInterfaceFunction
Class Method
VISIBLE
Scores ngrams using Student's t test with independence hypothesis for unigrams, as in Manning and Schutze 5.3.1.
-
nltk.metrics.association.NgramAssocMeasures.chi_sq
nltk.metrics.association.NgramAssocMeasures.html#chi_sq
ZopeInterfaceFunction
Class Method
VISIBLE
Scores ngrams using Pearson's chi-square as in Manning and Schutze 5.3.3.
-
nltk.metrics.association.NgramAssocMeasures.mi_like
nltk.metrics.association.NgramAssocMeasures.html#mi_like
ZopeInterfaceFunction
Static Method
VISIBLE
Scores ngrams using a variant of mutual information. The keyword argument power sets an exponent (default 3) for the numerator. No logarithm of the result is calculated.
-
nltk.metrics.association.NgramAssocMeasures.pmi
nltk.metrics.association.NgramAssocMeasures.html#pmi
ZopeInterfaceFunction
Class Method
VISIBLE
Scores ngrams by pointwise mutual information, as in Manning and Schutze 5.4.
-
nltk.metrics.association.NgramAssocMeasures.likelihood_ratio
nltk.metrics.association.NgramAssocMeasures.html#likelihood_ratio
ZopeInterfaceFunction
Class Method
VISIBLE
Scores ngrams using likelihood ratios as in Manning and Schutze 5.3.4.
-
nltk.metrics.association.NgramAssocMeasures.poisson_stirling
nltk.metrics.association.NgramAssocMeasures.html#poisson_stirling
ZopeInterfaceFunction
Class Method
VISIBLE
Scores ngrams using the Poisson-Stirling measure.
-
nltk.metrics.association.NgramAssocMeasures.jaccard
nltk.metrics.association.NgramAssocMeasures.html#jaccard
ZopeInterfaceFunction
Class Method
VISIBLE
Scores ngrams using the Jaccard index.
-
nltk.metrics.association.BigramAssocMeasures
nltk.metrics.association.BigramAssocMeasures.html
ZopeInterfaceClass
Class
VISIBLE
A collection of bigram association measures. Each association measure is provided as a function with three arguments:
-
nltk.metrics.association.BigramAssocMeasures._n
nltk.metrics.association.BigramAssocMeasures.html#_n
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.metrics.association.BigramAssocMeasures._contingency
nltk.metrics.association.BigramAssocMeasures.html#_contingency
ZopeInterfaceFunction
Static Method
PRIVATE
Calculates values of a bigram contingency table from marginal values.
-
nltk.metrics.association.BigramAssocMeasures._marginals
nltk.metrics.association.BigramAssocMeasures.html#_marginals
ZopeInterfaceFunction
Static Method
PRIVATE
Calculates values of contingency table marginals from its values.
-
nltk.metrics.association.BigramAssocMeasures._expected_values
nltk.metrics.association.BigramAssocMeasures.html#_expected_values
ZopeInterfaceFunction
Static Method
PRIVATE
Calculates expected values for a contingency table.
-
nltk.metrics.association.BigramAssocMeasures.phi_sq
nltk.metrics.association.BigramAssocMeasures.html#phi_sq
ZopeInterfaceFunction
Class Method
VISIBLE
Scores bigrams using phi-square, the square of the Pearson correlation coefficient.
-
nltk.metrics.association.BigramAssocMeasures.chi_sq
nltk.metrics.association.BigramAssocMeasures.html#chi_sq
ZopeInterfaceFunction
Class Method
VISIBLE
Scores bigrams using chi-square, i.e. phi-sq multiplied by the number of bigrams, as in Manning and Schutze 5.3.3.
-
nltk.metrics.association.BigramAssocMeasures.fisher
nltk.metrics.association.BigramAssocMeasures.html#fisher
ZopeInterfaceFunction
Class Method
VISIBLE
Scores bigrams using Fisher's Exact Test (Pedersen 1996). Less sensitive to small counts than PMI or Chi Sq, but also more expensive to compute. Requires scipy.
-
nltk.metrics.association.BigramAssocMeasures.dice
nltk.metrics.association.BigramAssocMeasures.html#dice
ZopeInterfaceFunction
Static Method
VISIBLE
Scores bigrams using Dice's coefficient.
-
nltk.metrics.association.TrigramAssocMeasures
nltk.metrics.association.TrigramAssocMeasures.html
ZopeInterfaceClass
Class
VISIBLE
A collection of trigram association measures. Each association measure is provided as a function with four arguments:
-
nltk.metrics.association.TrigramAssocMeasures._n
nltk.metrics.association.TrigramAssocMeasures.html#_n
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.metrics.association.TrigramAssocMeasures._contingency
nltk.metrics.association.TrigramAssocMeasures.html#_contingency
ZopeInterfaceFunction
Static Method
PRIVATE
No summary
-
nltk.metrics.association.TrigramAssocMeasures._marginals
nltk.metrics.association.TrigramAssocMeasures.html#_marginals
ZopeInterfaceFunction
Static Method
PRIVATE
Calculates values of contingency table marginals from its values. >>> TrigramAssocMeasures._marginals(1, 0, 0, 0, 0, 72, 0, 1927) (1, (1, 1, 1), (1, 73, 1), 2000)
-
nltk.metrics.association.QuadgramAssocMeasures
nltk.metrics.association.QuadgramAssocMeasures.html
ZopeInterfaceClass
Class
VISIBLE
A collection of quadgram association measures. Each association measure is provided as a function with five arguments:
-
nltk.metrics.association.QuadgramAssocMeasures._n
nltk.metrics.association.QuadgramAssocMeasures.html#_n
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.metrics.association.QuadgramAssocMeasures._contingency
nltk.metrics.association.QuadgramAssocMeasures.html#_contingency
ZopeInterfaceFunction
Static Method
PRIVATE
Calculates values of a quadgram contingency table from marginal values.
-
nltk.metrics.association.QuadgramAssocMeasures._marginals
nltk.metrics.association.QuadgramAssocMeasures.html#_marginals
ZopeInterfaceFunction
Static Method
PRIVATE
Calculates values of contingency table marginals from its values. QuadgramAssocMeasures._marginals(1, 0, 2, 46, 552, 825, 2577, 34967, 1, 0, 2, 48, 7250, 9031, 28585, 356653) (1, (2, 553, 3, 1), (7804, 6, 3132, 1378, 49, 2), (38970, 17660, 100, 38970), 440540)
-
nltk.metrics.association.ContingencyMeasures
nltk.metrics.association.ContingencyMeasures.html
ZopeInterfaceClass
Class
VISIBLE
Wraps NgramAssocMeasures classes such that the arguments of association measures are contingency table values rather than marginals.
-
nltk.metrics.association.ContingencyMeasures.__init__
nltk.metrics.association.ContingencyMeasures.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Constructs a ContingencyMeasures given a NgramAssocMeasures class
-
nltk.metrics.association.ContingencyMeasures._make_contingency_fn
nltk.metrics.association.ContingencyMeasures.html#_make_contingency_fn
ZopeInterfaceFunction
Static Method
PRIVATE
From an association measure function, produces a new function which accepts contingency table values as its arguments.
-
nltk.metrics.spearman._rank_dists
nltk.metrics.spearman.html#_rank_dists
ZopeInterfaceFunction
Function
PRIVATE
Finds the difference between the values in ranks1 and ranks2 for keys present in both dicts. If the arguments are not dicts, they are converted from (key, rank) sequences.
-
nltk.metrics.spearman.spearman_correlation
nltk.metrics.spearman.html#spearman_correlation
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.spearman.ranks_from_sequence
nltk.metrics.spearman.html#ranks_from_sequence
ZopeInterfaceFunction
Function
VISIBLE
Given a sequence, yields each element with an increasing rank, suitable for use as an argument to spearman_correlation.
-
nltk.metrics.spearman.ranks_from_scores
nltk.metrics.spearman.html#ranks_from_scores
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.metrics.aline.np
nltk.metrics.aline.html#np
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.inf
nltk.metrics.aline.html#inf
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.C_skip
nltk.metrics.aline.html#C_skip
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.C_sub
nltk.metrics.aline.html#C_sub
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.C_exp
nltk.metrics.aline.html#C_exp
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.C_vwl
nltk.metrics.aline.html#C_vwl
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.consonants
nltk.metrics.aline.html#consonants
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.R_c
nltk.metrics.aline.html#R_c
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.R_v
nltk.metrics.aline.html#R_v
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.similarity_matrix
nltk.metrics.aline.html#similarity_matrix
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.salience
nltk.metrics.aline.html#salience
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.feature_matrix
nltk.metrics.aline.html#feature_matrix
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.metrics.aline.align
nltk.metrics.aline.html#align
ZopeInterfaceFunction
Function
VISIBLE
Compute the alignment of two phonetic strings.
-
nltk.metrics.aline._retrieve
nltk.metrics.aline.html#_retrieve
ZopeInterfaceFunction
Function
PRIVATE
Retrieve the path through the similarity matrix S starting at (i, j).
-
nltk.metrics.aline.sigma_skip
nltk.metrics.aline.html#sigma_skip
ZopeInterfaceFunction
Function
VISIBLE
Returns score of an indel of P.
-
nltk.metrics.aline.sigma_sub
nltk.metrics.aline.html#sigma_sub
ZopeInterfaceFunction
Function
VISIBLE
Returns score of a substitution of P with Q.
-
nltk.metrics.aline.sigma_exp
nltk.metrics.aline.html#sigma_exp
ZopeInterfaceFunction
Function
VISIBLE
Returns score of an expansion/compression.
-
nltk.metrics.aline.delta
nltk.metrics.aline.html#delta
ZopeInterfaceFunction
Function
VISIBLE
Return weighted sum of difference between P and Q.
-
nltk.metrics.aline.diff
nltk.metrics.aline.html#diff
ZopeInterfaceFunction
Function
VISIBLE
Returns difference between phonetic segments P and Q for feature F.
-
nltk.metrics.aline.R
nltk.metrics.aline.html#R
ZopeInterfaceFunction
Function
VISIBLE
Return relevant features for segment comparsion.
-
nltk.metrics.aline.V
nltk.metrics.aline.html#V
ZopeInterfaceFunction
Function
VISIBLE
Return vowel weight if P is vowel.
-
nltk.metrics.aline.demo
nltk.metrics.aline.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of the result of aligning phonetic sequences used in Kondrak's (2002) dissertation.
-
nltk.metrics.aline.cognate_data
nltk.metrics.aline.html#cognate_data
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.collocations.AbstractCollocationFinder
nltk.collocations.AbstractCollocationFinder.html
ZopeInterfaceClass
Class
VISIBLE
An abstract base class for collocation finders whose purpose is to collect collocation candidate frequencies, filter and rank them.
-
nltk.collocations.AbstractCollocationFinder.__init__
nltk.collocations.AbstractCollocationFinder.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collocations.AbstractCollocationFinder.word_fd
nltk.collocations.AbstractCollocationFinder.html#word_fd
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.AbstractCollocationFinder.N
nltk.collocations.AbstractCollocationFinder.html#N
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.AbstractCollocationFinder.ngram_fd
nltk.collocations.AbstractCollocationFinder.html#ngram_fd
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.AbstractCollocationFinder._build_new_documents
nltk.collocations.AbstractCollocationFinder.html#_build_new_documents
ZopeInterfaceFunction
Class Method
PRIVATE
Pad the document with the place holder according to the window_size
-
nltk.collocations.AbstractCollocationFinder.from_documents
nltk.collocations.AbstractCollocationFinder.html#from_documents
ZopeInterfaceFunction
Class Method
VISIBLE
Constructs a collocation finder given a collection of documents, each of which is a list (or iterable) of tokens.
-
nltk.collocations.AbstractCollocationFinder._ngram_freqdist
nltk.collocations.AbstractCollocationFinder.html#_ngram_freqdist
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.collocations.AbstractCollocationFinder._apply_filter
nltk.collocations.AbstractCollocationFinder.html#_apply_filter
ZopeInterfaceFunction
Method
PRIVATE
Generic filter removes ngrams from the frequency distribution if the function returns True when passed an ngram tuple.
-
nltk.collocations.AbstractCollocationFinder.apply_freq_filter
nltk.collocations.AbstractCollocationFinder.html#apply_freq_filter
ZopeInterfaceFunction
Method
VISIBLE
Removes candidate ngrams which have frequency less than min_freq.
-
nltk.collocations.AbstractCollocationFinder.apply_ngram_filter
nltk.collocations.AbstractCollocationFinder.html#apply_ngram_filter
ZopeInterfaceFunction
Method
VISIBLE
Removes candidate ngrams (w1, w2, ...) where fn(w1, w2, ...) evaluates to True.
-
nltk.collocations.AbstractCollocationFinder.apply_word_filter
nltk.collocations.AbstractCollocationFinder.html#apply_word_filter
ZopeInterfaceFunction
Method
VISIBLE
Removes candidate ngrams (w1, w2, ...) where any of (fn(w1), fn(w2), ...) evaluates to True.
-
nltk.collocations.AbstractCollocationFinder._score_ngrams
nltk.collocations.AbstractCollocationFinder.html#_score_ngrams
ZopeInterfaceFunction
Method
PRIVATE
Generates of (ngram, score) pairs as determined by the scoring function provided.
-
nltk.collocations.AbstractCollocationFinder.score_ngrams
nltk.collocations.AbstractCollocationFinder.html#score_ngrams
ZopeInterfaceFunction
Method
VISIBLE
Returns a sequence of (ngram, score) pairs ordered from highest to lowest score, as determined by the scoring function provided.
-
nltk.collocations.AbstractCollocationFinder.nbest
nltk.collocations.AbstractCollocationFinder.html#nbest
ZopeInterfaceFunction
Method
VISIBLE
Returns the top n ngrams when scored by the given function.
-
nltk.collocations.AbstractCollocationFinder.above_score
nltk.collocations.AbstractCollocationFinder.html#above_score
ZopeInterfaceFunction
Method
VISIBLE
Returns a sequence of ngrams, ordered by decreasing score, whose scores each exceed the given minimum score.
-
nltk.collocations.BigramCollocationFinder
nltk.collocations.BigramCollocationFinder.html
ZopeInterfaceClass
Class
VISIBLE
A tool for the finding and ranking of bigram collocations or other association measures. It is often useful to use from_words() rather than constructing an instance directly.
-
nltk.collocations.BigramCollocationFinder.default_ws
nltk.collocations.BigramCollocationFinder.html#default_ws
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.collocations.BigramCollocationFinder.__init__
nltk.collocations.BigramCollocationFinder.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a BigramCollocationFinder, given FreqDists for appearances of words and (possibly non-contiguous) bigrams.
-
nltk.collocations.BigramCollocationFinder.window_size
nltk.collocations.BigramCollocationFinder.html#window_size
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.BigramCollocationFinder.from_words
nltk.collocations.BigramCollocationFinder.html#from_words
ZopeInterfaceFunction
Class Method
VISIBLE
Construct a BigramCollocationFinder for all bigrams in the given sequence. When window_size > 2, count non-contiguous bigrams, in the style of Church and Hanks's (1990) association ratio.
-
nltk.collocations.BigramCollocationFinder.score_ngram
nltk.collocations.BigramCollocationFinder.html#score_ngram
ZopeInterfaceFunction
Method
VISIBLE
Returns the score for a given bigram using the given scoring function. Following Church and Hanks (1990), counts are scaled by a factor of 1/(window_size - 1).
-
nltk.collocations.TrigramCollocationFinder
nltk.collocations.TrigramCollocationFinder.html
ZopeInterfaceClass
Class
VISIBLE
A tool for the finding and ranking of trigram collocations or other association measures. It is often useful to use from_words() rather than constructing an instance directly.
-
nltk.collocations.TrigramCollocationFinder.default_ws
nltk.collocations.TrigramCollocationFinder.html#default_ws
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.collocations.TrigramCollocationFinder.__init__
nltk.collocations.TrigramCollocationFinder.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a TrigramCollocationFinder, given FreqDists for appearances of words, bigrams, two words with any word between them, and trigrams.
-
nltk.collocations.TrigramCollocationFinder.wildcard_fd
nltk.collocations.TrigramCollocationFinder.html#wildcard_fd
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.TrigramCollocationFinder.bigram_fd
nltk.collocations.TrigramCollocationFinder.html#bigram_fd
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.TrigramCollocationFinder.from_words
nltk.collocations.TrigramCollocationFinder.html#from_words
ZopeInterfaceFunction
Class Method
VISIBLE
Construct a TrigramCollocationFinder for all trigrams in the given sequence.
-
nltk.collocations.TrigramCollocationFinder.bigram_finder
nltk.collocations.TrigramCollocationFinder.html#bigram_finder
ZopeInterfaceFunction
Method
VISIBLE
Constructs a bigram collocation finder with the bigram and unigram data from this finder. Note that this does not include any filtering applied to this finder.
-
nltk.collocations.TrigramCollocationFinder.score_ngram
nltk.collocations.TrigramCollocationFinder.html#score_ngram
ZopeInterfaceFunction
Method
VISIBLE
Returns the score for a given trigram using the given scoring function.
-
nltk.collocations.QuadgramCollocationFinder
nltk.collocations.QuadgramCollocationFinder.html
ZopeInterfaceClass
Class
VISIBLE
A tool for the finding and ranking of quadgram collocations or other association measures. It is often useful to use from_words() rather than constructing an instance directly.
-
nltk.collocations.QuadgramCollocationFinder.default_ws
nltk.collocations.QuadgramCollocationFinder.html#default_ws
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.collocations.QuadgramCollocationFinder.__init__
nltk.collocations.QuadgramCollocationFinder.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a QuadgramCollocationFinder, given FreqDists for appearances of words, bigrams, trigrams, two words with one word and two words between them, three words with a word between them in both variations.
-
nltk.collocations.QuadgramCollocationFinder.iii
nltk.collocations.QuadgramCollocationFinder.html#iii
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.QuadgramCollocationFinder.ii
nltk.collocations.QuadgramCollocationFinder.html#ii
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.QuadgramCollocationFinder.ixi
nltk.collocations.QuadgramCollocationFinder.html#ixi
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.QuadgramCollocationFinder.ixxi
nltk.collocations.QuadgramCollocationFinder.html#ixxi
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.QuadgramCollocationFinder.iixi
nltk.collocations.QuadgramCollocationFinder.html#iixi
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.QuadgramCollocationFinder.ixii
nltk.collocations.QuadgramCollocationFinder.html#ixii
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.collocations.QuadgramCollocationFinder.from_words
nltk.collocations.QuadgramCollocationFinder.html#from_words
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.collocations.QuadgramCollocationFinder.score_ngram
nltk.collocations.QuadgramCollocationFinder.html#score_ngram
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.collocations.demo
nltk.collocations.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Finds bigram collocations in the files of the WebText corpus.
-
nltk.collocations.scorer
nltk.collocations.html#scorer
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.collocations.compare_scorer
nltk.collocations.html#compare_scorer
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.decorators.OLD_SYS_PATH
nltk.decorators.html#OLD_SYS_PATH
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.decorators.__legacysignature
nltk.decorators.html#__legacysignature
ZopeInterfaceFunction
Function
PRIVATE
For retrocompatibility reasons, we don't use a standard Signature. Instead, we use the string generated by this method. Basically, from a Signature we create a string and remove the default values.
-
nltk.decorators.getinfo
nltk.decorators.html#getinfo
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.decorators.update_wrapper
nltk.decorators.html#update_wrapper
ZopeInterfaceFunction
Function
VISIBLE
akin to functools.update_wrapper
-
nltk.decorators.new_wrapper
nltk.decorators.html#new_wrapper
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.decorators.__call__
nltk.decorators.html#__call__
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.decorators.decorator_factory
nltk.decorators.html#decorator_factory
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.decorators.decorator
nltk.decorators.html#decorator
ZopeInterfaceFunction
Function
VISIBLE
General purpose decorator factory: takes a caller function as input and returns a decorator with the same attributes. A caller function is any function like this:
-
nltk.decorators.getattr_
nltk.decorators.html#getattr_
ZopeInterfaceFunction
Function
VISIBLE
Similar to .setdefault in dictionaries.
-
nltk.decorators.memoize
nltk.decorators.html#memoize
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.lm.util.NEG_INF
nltk.lm.util.html#NEG_INF
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.lm.util.POS_INF
nltk.lm.util.html#POS_INF
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.lm.util.log_base2
nltk.lm.util.html#log_base2
ZopeInterfaceFunction
Function
VISIBLE
Convenience function for computing logarithms with base 2.
-
nltk.lm.vocabulary._dispatched_lookup
nltk.lm.vocabulary.html#_dispatched_lookup
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.lm.vocabulary._
nltk.lm.vocabulary.html#_
ZopeInterfaceFunction
Function
PRIVATE
Look up a sequence of words in the vocabulary.
-
nltk.lm.vocabulary._string_lookup
nltk.lm.vocabulary.html#_string_lookup
ZopeInterfaceFunction
Function
PRIVATE
Looks up one word in the vocabulary.
-
nltk.lm.api.Smoothing
nltk.lm.api.Smoothing.html
ZopeInterfaceClass
Class
VISIBLE
Ngram Smoothing Interface
-
nltk.lm.api.Smoothing.__init__
nltk.lm.api.Smoothing.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.lm.api.Smoothing.vocab
nltk.lm.api.Smoothing.html#vocab
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.api.Smoothing.counts
nltk.lm.api.Smoothing.html#counts
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.api.Smoothing.unigram_score
nltk.lm.api.Smoothing.html#unigram_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.api.Smoothing.alpha_gamma
nltk.lm.api.Smoothing.html#alpha_gamma
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.api._mean
nltk.lm.api.html#_mean
ZopeInterfaceFunction
Function
PRIVATE
Return average (aka mean) for sequence of items.
-
nltk.lm.api._random_generator
nltk.lm.api.html#_random_generator
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.lm.api._weighted_choice
nltk.lm.api.html#_weighted_choice
ZopeInterfaceFunction
Function
PRIVATE
Like random.choice, but with weights.
-
nltk.lm.api.LanguageModel
nltk.lm.api.LanguageModel.html
ZopeInterfaceClass
Class
VISIBLE
ABC for Language Models.
-
nltk.lm.api.LanguageModel.__init__
nltk.lm.api.LanguageModel.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates new LanguageModel.
-
nltk.lm.api.LanguageModel.order
nltk.lm.api.LanguageModel.html#order
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.api.LanguageModel.vocab
nltk.lm.api.LanguageModel.html#vocab
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.api.LanguageModel.counts
nltk.lm.api.LanguageModel.html#counts
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.api.LanguageModel.fit
nltk.lm.api.LanguageModel.html#fit
ZopeInterfaceFunction
Method
VISIBLE
Trains the model on a text.
-
nltk.lm.api.LanguageModel.score
nltk.lm.api.LanguageModel.html#score
ZopeInterfaceFunction
Method
VISIBLE
Masks out of vocab (OOV) words and computes their model score.
-
nltk.lm.api.LanguageModel.unmasked_score
nltk.lm.api.LanguageModel.html#unmasked_score
ZopeInterfaceFunction
Method
VISIBLE
Score a word given some optional context.
-
nltk.lm.api.LanguageModel.logscore
nltk.lm.api.LanguageModel.html#logscore
ZopeInterfaceFunction
Method
VISIBLE
Evaluate the log score of this word in this context.
-
nltk.lm.api.LanguageModel.context_counts
nltk.lm.api.LanguageModel.html#context_counts
ZopeInterfaceFunction
Method
VISIBLE
Helper method for retrieving counts for a given context.
-
nltk.lm.api.LanguageModel.entropy
nltk.lm.api.LanguageModel.html#entropy
ZopeInterfaceFunction
Method
VISIBLE
Calculate cross-entropy of model for given evaluation text.
-
nltk.lm.api.LanguageModel.perplexity
nltk.lm.api.LanguageModel.html#perplexity
ZopeInterfaceFunction
Method
VISIBLE
Calculates the perplexity of the given text.
-
nltk.lm.api.LanguageModel.generate
nltk.lm.api.LanguageModel.html#generate
ZopeInterfaceFunction
Method
VISIBLE
Generate words from the model.
-
nltk.lm.smoothing._count_non_zero_vals
nltk.lm.smoothing.html#_count_non_zero_vals
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.lm.smoothing.WittenBell
nltk.lm.smoothing.WittenBell.html
ZopeInterfaceClass
Class
VISIBLE
Witten-Bell smoothing.
-
nltk.lm.smoothing.WittenBell.__init__
nltk.lm.smoothing.WittenBell.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.lm.smoothing.WittenBell.alpha_gamma
nltk.lm.smoothing.WittenBell.html#alpha_gamma
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.smoothing.WittenBell._gamma
nltk.lm.smoothing.WittenBell.html#_gamma
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.lm.smoothing.WittenBell.unigram_score
nltk.lm.smoothing.WittenBell.html#unigram_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.smoothing.KneserNey
nltk.lm.smoothing.KneserNey.html
ZopeInterfaceClass
Class
VISIBLE
Kneser-Ney Smoothing.
-
nltk.lm.smoothing.KneserNey.__init__
nltk.lm.smoothing.KneserNey.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.lm.smoothing.KneserNey.discount
nltk.lm.smoothing.KneserNey.html#discount
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.smoothing.KneserNey.unigram_score
nltk.lm.smoothing.KneserNey.html#unigram_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.smoothing.KneserNey.alpha_gamma
nltk.lm.smoothing.KneserNey.html#alpha_gamma
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.models.InterpolatedLanguageModel
nltk.lm.models.InterpolatedLanguageModel.html
ZopeInterfaceClass
Class
VISIBLE
Logic common to all interpolated language models.
-
nltk.lm.models.InterpolatedLanguageModel.__init__
nltk.lm.models.InterpolatedLanguageModel.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates new LanguageModel.
-
nltk.lm.models.InterpolatedLanguageModel.estimator
nltk.lm.models.InterpolatedLanguageModel.html#estimator
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.models.InterpolatedLanguageModel.unmasked_score
nltk.lm.models.InterpolatedLanguageModel.html#unmasked_score
ZopeInterfaceFunction
Method
VISIBLE
Score a word given some optional context.
-
nltk.lm.MLE
nltk.lm.MLE.html
ZopeInterfaceClass
Class
VISIBLE
Class for providing MLE ngram model scores.
-
nltk.lm.MLE.unmasked_score
nltk.lm.MLE.html#unmasked_score
ZopeInterfaceFunction
Method
VISIBLE
Returns the MLE score for a word given a context.
-
nltk.lm.Lidstone
nltk.lm.Lidstone.html
ZopeInterfaceClass
Class
VISIBLE
Provides Lidstone-smoothed scores.
-
nltk.lm.Lidstone.__init__
nltk.lm.Lidstone.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates new LanguageModel.
-
nltk.lm.Lidstone.gamma
nltk.lm.Lidstone.html#gamma
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.Lidstone.unmasked_score
nltk.lm.Lidstone.html#unmasked_score
ZopeInterfaceFunction
Method
VISIBLE
Add-one smoothing: Lidstone or Laplace.
-
nltk.lm.Laplace
nltk.lm.Laplace.html
ZopeInterfaceClass
Class
VISIBLE
Implements Laplace (add one) smoothing.
-
nltk.lm.Laplace.__init__
nltk.lm.Laplace.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates new LanguageModel.
-
nltk.lm.WittenBellInterpolated
nltk.lm.WittenBellInterpolated.html
ZopeInterfaceClass
Class
VISIBLE
Interpolated version of Witten-Bell smoothing.
-
nltk.lm.WittenBellInterpolated.__init__
nltk.lm.WittenBellInterpolated.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates new LanguageModel.
-
nltk.lm.KneserNeyInterpolated
nltk.lm.KneserNeyInterpolated.html
ZopeInterfaceClass
Class
VISIBLE
Interpolated version of Kneser-Ney smoothing.
-
nltk.lm.KneserNeyInterpolated.__init__
nltk.lm.KneserNeyInterpolated.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates new LanguageModel.
-
nltk.lm.NgramCounter
nltk.lm.NgramCounter.html
ZopeInterfaceClass
Class
VISIBLE
Class for counting ngrams.
-
nltk.lm.NgramCounter.__init__
nltk.lm.NgramCounter.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates a new NgramCounter.
-
nltk.lm.NgramCounter._counts
nltk.lm.NgramCounter.html#_counts
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.lm.NgramCounter.unigrams
nltk.lm.NgramCounter.html#unigrams
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.NgramCounter.update
nltk.lm.NgramCounter.html#update
ZopeInterfaceFunction
Method
VISIBLE
Updates ngram counts from ngram_text.
-
nltk.lm.NgramCounter.N
nltk.lm.NgramCounter.html#N
ZopeInterfaceFunction
Method
VISIBLE
Returns grand total number of ngrams stored.
-
nltk.lm.NgramCounter.__getitem__
nltk.lm.NgramCounter.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
User-friendly access to ngram counts.
-
nltk.lm.NgramCounter.__str__
nltk.lm.NgramCounter.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.NgramCounter.__len__
nltk.lm.NgramCounter.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.NgramCounter.__contains__
nltk.lm.NgramCounter.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.Vocabulary
nltk.lm.Vocabulary.html
ZopeInterfaceClass
Class
VISIBLE
Stores language model vocabulary.
-
nltk.lm.Vocabulary.__init__
nltk.lm.Vocabulary.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Vocabulary.
-
nltk.lm.Vocabulary.unk_label
nltk.lm.Vocabulary.html#unk_label
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.Vocabulary._cutoff
nltk.lm.Vocabulary.html#_cutoff
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.lm.Vocabulary.counts
nltk.lm.Vocabulary.html#counts
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lm.Vocabulary.cutoff
nltk.lm.Vocabulary.html#cutoff
ZopeInterfaceAttribute
Property
VISIBLE
Cutoff value.
-
nltk.lm.Vocabulary.update
nltk.lm.Vocabulary.html#update
ZopeInterfaceFunction
Method
VISIBLE
Update vocabulary counts.
-
nltk.lm.Vocabulary._len
nltk.lm.Vocabulary.html#_len
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.lm.Vocabulary.lookup
nltk.lm.Vocabulary.html#lookup
ZopeInterfaceFunction
Method
VISIBLE
Look up one or more words in the vocabulary.
-
nltk.lm.Vocabulary.__getitem__
nltk.lm.Vocabulary.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.Vocabulary.__contains__
nltk.lm.Vocabulary.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Only consider items with counts GE to cutoff as being in the vocabulary.
-
nltk.lm.Vocabulary.__iter__
nltk.lm.Vocabulary.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Building on membership check define how to iterate over vocabulary.
-
nltk.lm.Vocabulary.__len__
nltk.lm.Vocabulary.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Computing size of vocabulary reflects the cutoff.
-
nltk.lm.Vocabulary.__eq__
nltk.lm.Vocabulary.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.Vocabulary.__str__
nltk.lm.Vocabulary.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.lm.preprocessing.pad_both_ends
nltk.lm.preprocessing.html#pad_both_ends
ZopeInterfaceAttribute
Variable
VISIBLE
Pads both ends of a sentence to length specified by ngram order.
-
nltk.lm.preprocessing.padded_everygrams
nltk.lm.preprocessing.html#padded_everygrams
ZopeInterfaceFunction
Function
VISIBLE
Helper with some useful defaults.
-
nltk.lm.preprocessing.padded_everygram_pipeline
nltk.lm.preprocessing.html#padded_everygram_pipeline
ZopeInterfaceFunction
Function
VISIBLE
Default preprocessing for a sequence of sentences.
-
nltk.text.ConcordanceLine
nltk.text.html#ConcordanceLine
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.text.ContextIndex
nltk.text.ContextIndex.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.text.ContextIndex._default_context
nltk.text.ContextIndex.html#_default_context
ZopeInterfaceFunction
Static Method
PRIVATE
One left token and one right token, normalized to lowercase
-
nltk.text.ContextIndex.__init__
nltk.text.ContextIndex.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.ContextIndex._key
nltk.text.ContextIndex.html#_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.ContextIndex._tokens
nltk.text.ContextIndex.html#_tokens
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.ContextIndex._context_func
nltk.text.ContextIndex.html#_context_func
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.ContextIndex._word_to_contexts
nltk.text.ContextIndex.html#_word_to_contexts
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.ContextIndex._context_to_words
nltk.text.ContextIndex.html#_context_to_words
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.ContextIndex.tokens
nltk.text.ContextIndex.html#tokens
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.text.ContextIndex.word_similarity_dict
nltk.text.ContextIndex.html#word_similarity_dict
ZopeInterfaceFunction
Method
VISIBLE
Return a dictionary mapping from words to 'similarity scores,' indicating how often these two words occur in the same context.
-
nltk.text.ContextIndex.similar_words
nltk.text.ContextIndex.html#similar_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.ContextIndex.common_contexts
nltk.text.ContextIndex.html#common_contexts
ZopeInterfaceFunction
Method
VISIBLE
Find contexts where the specified words can all appear; and return a frequency distribution mapping each context to the number of times that context was used.
-
nltk.text.ConcordanceIndex
nltk.text.ConcordanceIndex.html
ZopeInterfaceClass
Class
VISIBLE
An index that can be used to look up the offset locations at which a given word occurs in a document.
-
nltk.text.ConcordanceIndex.__init__
nltk.text.ConcordanceIndex.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new concordance index.
-
nltk.text.ConcordanceIndex._tokens
nltk.text.ConcordanceIndex.html#_tokens
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The document (list of tokens) that this concordance index was created from.
-
nltk.text.ConcordanceIndex._key
nltk.text.ConcordanceIndex.html#_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Function mapping each token to an index key (or None).
-
nltk.text.ConcordanceIndex._offsets
nltk.text.ConcordanceIndex.html#_offsets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Dictionary mapping words (or keys) to lists of offset indices.
-
nltk.text.ConcordanceIndex.tokens
nltk.text.ConcordanceIndex.html#tokens
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.text.ConcordanceIndex.offsets
nltk.text.ConcordanceIndex.html#offsets
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.text.ConcordanceIndex.__repr__
nltk.text.ConcordanceIndex.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.ConcordanceIndex.find_concordance
nltk.text.ConcordanceIndex.html#find_concordance
ZopeInterfaceFunction
Method
VISIBLE
Find all concordance lines given the query word.
-
nltk.text.ConcordanceIndex.print_concordance
nltk.text.ConcordanceIndex.html#print_concordance
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.text.TokenSearcher
nltk.text.TokenSearcher.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.text.TokenSearcher.__init__
nltk.text.TokenSearcher.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.TokenSearcher._raw
nltk.text.TokenSearcher.html#_raw
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.TokenSearcher.findall
nltk.text.TokenSearcher.html#findall
ZopeInterfaceFunction
Method
VISIBLE
Find instances of the regular expression in the text. The text is a list of tokens, and a regexp pattern to match a single token must be surrounded by angle brackets. E.g.
-
nltk.text.Text
nltk.text.Text.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.text.Text._COPY_TOKENS
nltk.text.Text.html#_COPY_TOKENS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.text.Text.__init__
nltk.text.Text.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a Text object.
-
nltk.text.Text.tokens
nltk.text.Text.html#tokens
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.text.Text.name
nltk.text.Text.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.text.Text.__getitem__
nltk.text.Text.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.Text.__len__
nltk.text.Text.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.Text.concordance
nltk.text.Text.html#concordance
ZopeInterfaceFunction
Method
VISIBLE
Prints a concordance for word with the specified context window. Word matching is not case-sensitive.
-
nltk.text.Text._concordance_index
nltk.text.Text.html#_concordance_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text.concordance_list
nltk.text.Text.html#concordance_list
ZopeInterfaceFunction
Method
VISIBLE
Generate a concordance for word with the specified context window. Word matching is not case-sensitive.
-
nltk.text.Text.collocation_list
nltk.text.Text.html#collocation_list
ZopeInterfaceFunction
Method
VISIBLE
Return collocations derived from the text, ignoring stopwords.
-
nltk.text.Text._num
nltk.text.Text.html#_num
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text._window_size
nltk.text.Text.html#_window_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text._collocations
nltk.text.Text.html#_collocations
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text.collocations
nltk.text.Text.html#collocations
ZopeInterfaceFunction
Method
VISIBLE
Print collocations derived from the text, ignoring stopwords.
-
nltk.text.Text.count
nltk.text.Text.html#count
ZopeInterfaceFunction
Method
VISIBLE
Count the number of times this word appears in the text.
-
nltk.text.Text.index
nltk.text.Text.html#index
ZopeInterfaceFunction
Method
VISIBLE
Find the index of the first occurrence of the word in the text.
-
nltk.text.Text.readability
nltk.text.Text.html#readability
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.Text.similar
nltk.text.Text.html#similar
ZopeInterfaceFunction
Method
VISIBLE
Distributional similarity: find other words which appear in the same contexts as the specified word; list most similar words first.
-
nltk.text.Text._word_context_index
nltk.text.Text.html#_word_context_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text.common_contexts
nltk.text.Text.html#common_contexts
ZopeInterfaceFunction
Method
VISIBLE
Find contexts where the specified words appear; list most frequent common contexts first.
-
nltk.text.Text.dispersion_plot
nltk.text.Text.html#dispersion_plot
ZopeInterfaceFunction
Method
VISIBLE
Produce a plot showing the distribution of the words through the text. Requires pylab to be installed.
-
nltk.text.Text._train_default_ngram_lm
nltk.text.Text.html#_train_default_ngram_lm
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.text.Text.generate
nltk.text.Text.html#generate
ZopeInterfaceFunction
Method
VISIBLE
Print random text, generated using a trigram language model. See also help(nltk.lm).
-
nltk.text.Text._tokenized_sents
nltk.text.Text.html#_tokenized_sents
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text._trigram_model
nltk.text.Text.html#_trigram_model
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text.plot
nltk.text.Text.html#plot
ZopeInterfaceFunction
Method
VISIBLE
See documentation for FreqDist.plot() :seealso: nltk.prob.FreqDist.plot()
-
nltk.text.Text.vocab
nltk.text.Text.html#vocab
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.text.Text._vocab
nltk.text.Text.html#_vocab
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text.findall
nltk.text.Text.html#findall
ZopeInterfaceFunction
Method
VISIBLE
Find instances of the regular expression in the text. The text is a list of tokens, and a regexp pattern to match a single token must be surrounded by angle brackets. E.g.
-
nltk.text.Text._token_searcher
nltk.text.Text.html#_token_searcher
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.Text._CONTEXT_RE
nltk.text.Text.html#_CONTEXT_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.text.Text._context
nltk.text.Text.html#_context
ZopeInterfaceFunction
Method
PRIVATE
One left & one right token, both case-normalized. Skip over non-sentence-final punctuation. Used by the ContextIndex that is created for similar() and common_contexts().
-
nltk.text.Text.__str__
nltk.text.Text.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.Text.__repr__
nltk.text.Text.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.TextCollection
nltk.text.TextCollection.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.text.TextCollection.__init__
nltk.text.TextCollection.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a Text object.
-
nltk.text.TextCollection._texts
nltk.text.TextCollection.html#_texts
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.TextCollection._idf_cache
nltk.text.TextCollection.html#_idf_cache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.text.TextCollection.tf
nltk.text.TextCollection.html#tf
ZopeInterfaceFunction
Method
VISIBLE
The frequency of the term in text.
-
nltk.text.TextCollection.idf
nltk.text.TextCollection.html#idf
ZopeInterfaceFunction
Method
VISIBLE
The number of texts in the corpus divided by the number of texts that the term appears in. If a term does not appear in the corpus, 0.0 is returned.
-
nltk.text.TextCollection.tf_idf
nltk.text.TextCollection.html#tf_idf
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.text.demo
nltk.text.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.jsontags.json_tags
nltk.jsontags.html#json_tags
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.jsontags.TAG_PREFIX
nltk.jsontags.html#TAG_PREFIX
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.jsontags.register_tag
nltk.jsontags.html#register_tag
ZopeInterfaceFunction
Function
VISIBLE
Decorates a class to register it's json tag.
-
nltk.jsontags.JSONTaggedEncoder
nltk.jsontags.JSONTaggedEncoder.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.jsontags.JSONTaggedEncoder.default
nltk.jsontags.JSONTaggedEncoder.html#default
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.jsontags.JSONTaggedDecoder
nltk.jsontags.JSONTaggedDecoder.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.jsontags.JSONTaggedDecoder.decode
nltk.jsontags.JSONTaggedDecoder.html#decode
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.jsontags.JSONTaggedDecoder.decode_obj
nltk.jsontags.JSONTaggedDecoder.html#decode_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.chunk.CHUNK_TAG_PATTERN
nltk.chunk.html#CHUNK_TAG_PATTERN
ZopeInterfaceAttribute
Variable
VISIBLE
A regular expression to test whether a tag
pattern is valid.
-
nltk.sem.evaluate.Error
nltk.sem.evaluate.Error.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.evaluate.Undefined
nltk.sem.evaluate.Undefined.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.evaluate.trace
nltk.sem.evaluate.html#trace
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.evaluate.is_rel
nltk.sem.evaluate.html#is_rel
ZopeInterfaceFunction
Function
VISIBLE
Check whether a set represents a relation (of any arity).
-
nltk.sem.evaluate.set2rel
nltk.sem.evaluate.html#set2rel
ZopeInterfaceFunction
Function
VISIBLE
Convert a set containing individuals (strings or numbers) into a set of unary tuples. Any tuples of strings already in the set are passed through unchanged.
-
nltk.sem.evaluate.arity
nltk.sem.evaluate.html#arity
ZopeInterfaceFunction
Function
VISIBLE
Check the arity of a relation. :type rel: set of tuples :rtype: int of tuple of str
-
nltk.sem.evaluate.Valuation
nltk.sem.evaluate.Valuation.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.sem.evaluate.Valuation.__init__
nltk.sem.evaluate.Valuation.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.evaluate.Valuation.__getitem__
nltk.sem.evaluate.Valuation.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.evaluate.Valuation.__str__
nltk.sem.evaluate.Valuation.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.evaluate.Valuation.domain
nltk.sem.evaluate.Valuation.html#domain
ZopeInterfaceAttribute
Property
VISIBLE
Set-theoretic domain of the value-space of a Valuation.
-
nltk.sem.evaluate.Valuation.symbols
nltk.sem.evaluate.Valuation.html#symbols
ZopeInterfaceAttribute
Property
VISIBLE
The non-logical constants which the Valuation recognizes.
-
nltk.sem.evaluate.Valuation.fromstring
nltk.sem.evaluate.Valuation.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.sem.evaluate._VAL_SPLIT_RE
nltk.sem.evaluate.html#_VAL_SPLIT_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.sem.evaluate._ELEMENT_SPLIT_RE
nltk.sem.evaluate.html#_ELEMENT_SPLIT_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.sem.evaluate._TUPLES_RE
nltk.sem.evaluate.html#_TUPLES_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.sem.evaluate._read_valuation_line
nltk.sem.evaluate.html#_read_valuation_line
ZopeInterfaceFunction
Function
PRIVATE
Read a line in a valuation file.
-
nltk.sem.evaluate.read_valuation
nltk.sem.evaluate.html#read_valuation
ZopeInterfaceFunction
Function
VISIBLE
Convert a valuation string into a valuation.
-
nltk.sem.evaluate.Assignment
nltk.sem.evaluate.Assignment.html
ZopeInterfaceClass
Class
VISIBLE
A dictionary which represents an assignment of values to variables.
-
nltk.sem.evaluate.Assignment.domain
nltk.sem.evaluate.Assignment.html#domain
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.evaluate.Assignment.__init__
nltk.sem.evaluate.Assignment.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.evaluate.Assignment.variant
nltk.sem.evaluate.Assignment.html#variant
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.evaluate.Assignment.__getitem__
nltk.sem.evaluate.Assignment.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.evaluate.Assignment.copy
nltk.sem.evaluate.Assignment.html#copy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.evaluate.Assignment.purge
nltk.sem.evaluate.Assignment.html#purge
ZopeInterfaceFunction
Method
VISIBLE
Remove one or all keys (i.e. logic variables) from an assignment, and update self.variant.
-
nltk.sem.evaluate.Assignment.__str__
nltk.sem.evaluate.Assignment.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Pretty printing for assignments. {'x', 'u'} appears as 'g[u/x]'
-
nltk.sem.evaluate.Assignment._addvariant
nltk.sem.evaluate.Assignment.html#_addvariant
ZopeInterfaceFunction
Method
PRIVATE
Create a more pretty-printable version of the assignment.
-
nltk.sem.evaluate.Assignment.add
nltk.sem.evaluate.Assignment.html#add
ZopeInterfaceFunction
Method
VISIBLE
Add a new variable-value pair to the assignment, and update self.variant.
-
nltk.sem.evaluate.Model
nltk.sem.evaluate.Model.html
ZopeInterfaceClass
Class
VISIBLE
A first order model is a domain D of discourse and a valuation V.
-
nltk.sem.evaluate.Model.domain
nltk.sem.evaluate.Model.html#domain
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.evaluate.Model.valuation
nltk.sem.evaluate.Model.html#valuation
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.evaluate.Model.__init__
nltk.sem.evaluate.Model.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.evaluate.Model.__repr__
nltk.sem.evaluate.Model.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.evaluate.Model.__str__
nltk.sem.evaluate.Model.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.evaluate.Model.evaluate
nltk.sem.evaluate.Model.html#evaluate
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.evaluate.Model.satisfy
nltk.sem.evaluate.Model.html#satisfy
ZopeInterfaceFunction
Method
VISIBLE
Recursive interpretation function for a formula of first-order logic.
-
nltk.sem.evaluate.Model.i
nltk.sem.evaluate.Model.html#i
ZopeInterfaceFunction
Method
VISIBLE
An interpretation function.
-
nltk.sem.evaluate.Model.satisfiers
nltk.sem.evaluate.Model.html#satisfiers
ZopeInterfaceFunction
Method
VISIBLE
Generate the entities from the model's domain that satisfy an open formula.
-
nltk.sem.evaluate.mult
nltk.sem.evaluate.html#mult
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.evaluate.propdemo
nltk.sem.evaluate.html#propdemo
ZopeInterfaceFunction
Function
VISIBLE
Example of a propositional model.
-
nltk.sem.evaluate.folmodel
nltk.sem.evaluate.html#folmodel
ZopeInterfaceFunction
Function
VISIBLE
Example of a first-order model.
-
nltk.sem.evaluate.foldemo
nltk.sem.evaluate.html#foldemo
ZopeInterfaceFunction
Function
VISIBLE
Interpretation of closed expressions in a first-order model.
-
nltk.sem.evaluate.satdemo
nltk.sem.evaluate.html#satdemo
ZopeInterfaceFunction
Function
VISIBLE
Satisfiers of an open formula in a first order model.
-
nltk.sem.evaluate.demo
nltk.sem.evaluate.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Run exists demos.
-
nltk.sem.util.parse_sents
nltk.sem.util.html#parse_sents
ZopeInterfaceFunction
Function
VISIBLE
Convert input sentences into syntactic trees.
-
nltk.sem.util.root_semrep
nltk.sem.util.html#root_semrep
ZopeInterfaceFunction
Function
VISIBLE
Find the semantic representation at the root of a tree.
-
nltk.sem.util.interpret_sents
nltk.sem.util.html#interpret_sents
ZopeInterfaceFunction
Function
VISIBLE
Add the semantic representation to each syntactic parse tree of each input sentence.
-
nltk.sem.util.evaluate_sents
nltk.sem.util.html#evaluate_sents
ZopeInterfaceFunction
Function
VISIBLE
Add the truth-in-a-model value to each semantic representation for each syntactic parse of each input sentences.
-
nltk.sem.util.demo_model0
nltk.sem.util.html#demo_model0
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.util.read_sents
nltk.sem.util.html#read_sents
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.util.demo_legacy_grammar
nltk.sem.util.html#demo_legacy_grammar
ZopeInterfaceFunction
Function
VISIBLE
Check that interpret_sents() is compatible with legacy grammars that use a lowercase 'sem' feature.
-
nltk.sem.util.demo
nltk.sem.util.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.skolemize.skolemize
nltk.sem.skolemize.html#skolemize
ZopeInterfaceFunction
Function
VISIBLE
Skolemize the expression and convert to conjunctive normal form (CNF)
-
nltk.sem.skolemize.to_cnf
nltk.sem.skolemize.html#to_cnf
ZopeInterfaceFunction
Function
VISIBLE
Convert this split disjunction to conjunctive normal form (CNF)
-
nltk.sem.lfg.FStructure
nltk.sem.lfg.FStructure.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/10 method, 1/3 static method documented
-
nltk.sem.lfg.FStructure.safeappend
nltk.sem.lfg.FStructure.html#safeappend
ZopeInterfaceFunction
Method
VISIBLE
Append 'item' to the list at 'key'. If no list exists for 'key', then construct one.
-
nltk.sem.lfg.FStructure.__setitem__
nltk.sem.lfg.FStructure.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.lfg.FStructure.__getitem__
nltk.sem.lfg.FStructure.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.lfg.FStructure.__contains__
nltk.sem.lfg.FStructure.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.lfg.FStructure.to_glueformula_list
nltk.sem.lfg.FStructure.html#to_glueformula_list
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.lfg.FStructure.to_depgraph
nltk.sem.lfg.FStructure.html#to_depgraph
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.lfg.FStructure._to_depgraph
nltk.sem.lfg.FStructure.html#_to_depgraph
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.lfg.FStructure.read_depgraph
nltk.sem.lfg.FStructure.html#read_depgraph
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.sem.lfg.FStructure._read_depgraph
nltk.sem.lfg.FStructure.html#_read_depgraph
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.sem.lfg.FStructure._make_label
nltk.sem.lfg.FStructure.html#_make_label
ZopeInterfaceFunction
Static Method
PRIVATE
Pick an alphabetic character as identifier for an entity in the model.
-
nltk.sem.lfg.FStructure.__repr__
nltk.sem.lfg.FStructure.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.lfg.FStructure.__str__
nltk.sem.lfg.FStructure.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.lfg.FStructure.pretty_format
nltk.sem.lfg.FStructure.html#pretty_format
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.lfg.demo_read_depgraph
nltk.sem.lfg.html#demo_read_depgraph
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.relextract._expand
nltk.sem.relextract.html#_expand
ZopeInterfaceFunction
Function
PRIVATE
Expand an NE class name. :type type: str :rtype: str
-
nltk.sem.drt.DrtTokens
nltk.sem.drt.DrtTokens.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.DRS
nltk.sem.drt.DrtTokens.html#DRS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.DRS_CONC
nltk.sem.drt.DrtTokens.html#DRS_CONC
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.PRONOUN
nltk.sem.drt.DrtTokens.html#PRONOUN
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.OPEN_BRACKET
nltk.sem.drt.DrtTokens.html#OPEN_BRACKET
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.CLOSE_BRACKET
nltk.sem.drt.DrtTokens.html#CLOSE_BRACKET
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.COLON
nltk.sem.drt.DrtTokens.html#COLON
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.PUNCT
nltk.sem.drt.DrtTokens.html#PUNCT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.SYMBOLS
nltk.sem.drt.DrtTokens.html#SYMBOLS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtTokens.TOKENS
nltk.sem.drt.DrtTokens.html#TOKENS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser
nltk.sem.drt.DrtParser.html
ZopeInterfaceClass
Class
VISIBLE
A lambda calculus expression parser.
-
nltk.sem.drt.DrtParser.__init__
nltk.sem.drt.DrtParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtParser.operator_precedence
nltk.sem.drt.DrtParser.html#operator_precedence
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.get_all_symbols
nltk.sem.drt.DrtParser.html#get_all_symbols
ZopeInterfaceFunction
Method
VISIBLE
This method exists to be overridden
-
nltk.sem.drt.DrtParser.isvariable
nltk.sem.drt.DrtParser.html#isvariable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.handle
nltk.sem.drt.DrtParser.html#handle
ZopeInterfaceFunction
Method
VISIBLE
This method is intended to be overridden for logics that use different operators or expressions
-
nltk.sem.drt.DrtParser.make_NegatedExpression
nltk.sem.drt.DrtParser.html#make_NegatedExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.handle_DRS
nltk.sem.drt.DrtParser.html#handle_DRS
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.handle_refs
nltk.sem.drt.DrtParser.html#handle_refs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.handle_conds
nltk.sem.drt.DrtParser.html#handle_conds
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.handle_prop
nltk.sem.drt.DrtParser.html#handle_prop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.make_EqualityExpression
nltk.sem.drt.DrtParser.html#make_EqualityExpression
ZopeInterfaceFunction
Method
VISIBLE
This method serves as a hook for other logic parsers that have different equality expression classes
-
nltk.sem.drt.DrtParser.get_BooleanExpression_factory
nltk.sem.drt.DrtParser.html#get_BooleanExpression_factory
ZopeInterfaceFunction
Method
VISIBLE
This method serves as a hook for other logic parsers that have different boolean operators
-
nltk.sem.drt.DrtParser.make_BooleanExpression
nltk.sem.drt.DrtParser.html#make_BooleanExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.make_ApplicationExpression
nltk.sem.drt.DrtParser.html#make_ApplicationExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.make_VariableExpression
nltk.sem.drt.DrtParser.html#make_VariableExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtParser.make_LambdaExpression
nltk.sem.drt.DrtParser.html#make_LambdaExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression
nltk.sem.drt.DrtExpression.html
ZopeInterfaceClass
Class
VISIBLE
This is the base abstract DRT Expression from which every DRT Expression extends.
-
nltk.sem.drt.DrtExpression._drt_parser
nltk.sem.drt.DrtExpression.html#_drt_parser
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.sem.drt.DrtExpression.fromstring
nltk.sem.drt.DrtExpression.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.applyto
nltk.sem.drt.DrtExpression.html#applyto
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.__neg__
nltk.sem.drt.DrtExpression.html#__neg__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.__and__
nltk.sem.drt.DrtExpression.html#__and__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.__or__
nltk.sem.drt.DrtExpression.html#__or__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.__gt__
nltk.sem.drt.DrtExpression.html#__gt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.equiv
nltk.sem.drt.DrtExpression.html#equiv
ZopeInterfaceFunction
Method
VISIBLE
Check for logical equivalence. Pass the expression (self <-> other) to the theorem prover. If the prover says it is valid, then the self and other are equal.
-
nltk.sem.drt.DrtExpression.type
nltk.sem.drt.DrtExpression.html#type
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.typecheck
nltk.sem.drt.DrtExpression.html#typecheck
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.__add__
nltk.sem.drt.DrtExpression.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.get_refs
nltk.sem.drt.DrtExpression.html#get_refs
ZopeInterfaceFunction
Method
VISIBLE
Return the set of discourse referents in this DRS. :param recursive: bool Also find discourse referents in subterms? :return: list of Variable objects
-
nltk.sem.drt.DrtExpression.is_pronoun_function
nltk.sem.drt.DrtExpression.html#is_pronoun_function
ZopeInterfaceFunction
Method
VISIBLE
Is self of the form "PRO(x)"?
-
nltk.sem.drt.DrtExpression.make_EqualityExpression
nltk.sem.drt.DrtExpression.html#make_EqualityExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.make_VariableExpression
nltk.sem.drt.DrtExpression.html#make_VariableExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.resolve_anaphora
nltk.sem.drt.DrtExpression.html#resolve_anaphora
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.eliminate_equality
nltk.sem.drt.DrtExpression.html#eliminate_equality
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.pretty_format
nltk.sem.drt.DrtExpression.html#pretty_format
ZopeInterfaceFunction
Method
VISIBLE
Draw the DRS :return: the pretty print string
-
nltk.sem.drt.DrtExpression.pretty_print
nltk.sem.drt.DrtExpression.html#pretty_print
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtExpression.draw
nltk.sem.drt.DrtExpression.html#draw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DRS
nltk.sem.drt.DRS.html
ZopeInterfaceClass
Class
VISIBLE
A Discourse Representation Structure.
-
nltk.sem.drt.DRS.__init__
nltk.sem.drt.DRS.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DRS.refs
nltk.sem.drt.DRS.html#refs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DRS.conds
nltk.sem.drt.DRS.html#conds
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DRS.consequent
nltk.sem.drt.DRS.html#consequent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DRS.replace
nltk.sem.drt.DRS.html#replace
ZopeInterfaceFunction
Method
VISIBLE
Replace all instances of variable v with expression E in self, where v is free in self.
-
nltk.sem.drt.DRS.free
nltk.sem.drt.DRS.html#free
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DRS.get_refs
nltk.sem.drt.DRS.html#get_refs
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DRS.visit
nltk.sem.drt.DRS.html#visit
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DRS.visit_structured
nltk.sem.drt.DRS.html#visit_structured
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DRS.eliminate_equality
nltk.sem.drt.DRS.html#eliminate_equality
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DRS.fol
nltk.sem.drt.DRS.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DRS._pretty
nltk.sem.drt.DRS.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DRS._order_ref_strings
nltk.sem.drt.DRS.html#_order_ref_strings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DRS.__eq__
nltk.sem.drt.DRS.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Defines equality modulo alphabetic variance. If we are comparing x.M and y.N, then check equality of M and N[x/y].
-
nltk.sem.drt.DRS.__ne__
nltk.sem.drt.DRS.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DRS.__str__
nltk.sem.drt.DRS.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtVariableExpression
nltk.sem.drt.html#DrtVariableExpression
ZopeInterfaceFunction
Function
VISIBLE
This is a factory method that instantiates and returns a subtype of DrtAbstractVariableExpression appropriate for the given variable.
-
nltk.sem.drt.DrtAbstractVariableExpression
nltk.sem.drt.DrtAbstractVariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/4 method documented
-
nltk.sem.drt.DrtAbstractVariableExpression.fol
nltk.sem.drt.DrtAbstractVariableExpression.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtAbstractVariableExpression.get_refs
nltk.sem.drt.DrtAbstractVariableExpression.html#get_refs
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtAbstractVariableExpression._pretty
nltk.sem.drt.DrtAbstractVariableExpression.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtAbstractVariableExpression.eliminate_equality
nltk.sem.drt.DrtAbstractVariableExpression.html#eliminate_equality
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtIndividualVariableExpression
nltk.sem.drt.DrtIndividualVariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.DrtFunctionVariableExpression
nltk.sem.drt.DrtFunctionVariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.DrtEventVariableExpression
nltk.sem.drt.DrtEventVariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConstantExpression
nltk.sem.drt.DrtConstantExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.DrtProposition
nltk.sem.drt.DrtProposition.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 instance variable, 2/11 methods documented
-
nltk.sem.drt.DrtProposition.__init__
nltk.sem.drt.DrtProposition.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtProposition.variable
nltk.sem.drt.DrtProposition.html#variable
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtProposition.drs
nltk.sem.drt.DrtProposition.html#drs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtProposition.replace
nltk.sem.drt.DrtProposition.html#replace
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.drt.DrtProposition.eliminate_equality
nltk.sem.drt.DrtProposition.html#eliminate_equality
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtProposition.get_refs
nltk.sem.drt.DrtProposition.html#get_refs
ZopeInterfaceFunction
Method
VISIBLE
Return the set of discourse referents in this DRS. :param recursive: bool Also find discourse referents in subterms? :return: list of Variable objects
-
nltk.sem.drt.DrtProposition.__eq__
nltk.sem.drt.DrtProposition.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtProposition.__ne__
nltk.sem.drt.DrtProposition.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtProposition.fol
nltk.sem.drt.DrtProposition.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtProposition._pretty
nltk.sem.drt.DrtProposition.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtProposition.visit
nltk.sem.drt.DrtProposition.html#visit
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtProposition.visit_structured
nltk.sem.drt.DrtProposition.html#visit_structured
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtProposition.__str__
nltk.sem.drt.DrtProposition.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtNegatedExpression
nltk.sem.drt.DrtNegatedExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/3 method documented
-
nltk.sem.drt.DrtNegatedExpression.fol
nltk.sem.drt.DrtNegatedExpression.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtNegatedExpression.get_refs
nltk.sem.drt.DrtNegatedExpression.html#get_refs
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtNegatedExpression._pretty
nltk.sem.drt.DrtNegatedExpression.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtLambdaExpression
nltk.sem.drt.DrtLambdaExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/3 method documented
-
nltk.sem.drt.DrtLambdaExpression.alpha_convert
nltk.sem.drt.DrtLambdaExpression.html#alpha_convert
ZopeInterfaceFunction
Method
VISIBLE
Rename all occurrences of the variable introduced by this variable binder in the expression to newvar. :param newvar: Variable, for the new variable
-
nltk.sem.drt.DrtLambdaExpression.fol
nltk.sem.drt.DrtLambdaExpression.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtLambdaExpression._pretty
nltk.sem.drt.DrtLambdaExpression.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtBinaryExpression
nltk.sem.drt.DrtBinaryExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/3 method, 0/1 static method documented
-
nltk.sem.drt.DrtBinaryExpression.get_refs
nltk.sem.drt.DrtBinaryExpression.html#get_refs
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtBinaryExpression._pretty
nltk.sem.drt.DrtBinaryExpression.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtBinaryExpression._assemble_pretty
nltk.sem.drt.DrtBinaryExpression.html#_assemble_pretty
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtBinaryExpression._pretty_subex
nltk.sem.drt.DrtBinaryExpression.html#_pretty_subex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtBooleanExpression
nltk.sem.drt.DrtBooleanExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.DrtOrExpression
nltk.sem.drt.DrtOrExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.DrtOrExpression.fol
nltk.sem.drt.DrtOrExpression.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtOrExpression._pretty_subex
nltk.sem.drt.DrtOrExpression.html#_pretty_subex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtEqualityExpression
nltk.sem.drt.DrtEqualityExpression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.DrtEqualityExpression.fol
nltk.sem.drt.DrtEqualityExpression.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConcatenation
nltk.sem.drt.DrtConcatenation.html
ZopeInterfaceClass
Class
VISIBLE
DRS of the form '(DRS + DRS)'
-
nltk.sem.drt.DrtConcatenation.__init__
nltk.sem.drt.DrtConcatenation.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConcatenation.consequent
nltk.sem.drt.DrtConcatenation.html#consequent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConcatenation.replace
nltk.sem.drt.DrtConcatenation.html#replace
ZopeInterfaceFunction
Method
VISIBLE
Replace all instances of variable v with expression E in self, where v is free in self.
-
nltk.sem.drt.DrtConcatenation.eliminate_equality
nltk.sem.drt.DrtConcatenation.html#eliminate_equality
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConcatenation.simplify
nltk.sem.drt.DrtConcatenation.html#simplify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtConcatenation.get_refs
nltk.sem.drt.DrtConcatenation.html#get_refs
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtConcatenation.getOp
nltk.sem.drt.DrtConcatenation.html#getOp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConcatenation.__eq__
nltk.sem.drt.DrtConcatenation.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Defines equality modulo alphabetic variance. If we are comparing x.M and y.N, then check equality of M and N[x/y].
-
nltk.sem.drt.DrtConcatenation.__ne__
nltk.sem.drt.DrtConcatenation.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConcatenation.fol
nltk.sem.drt.DrtConcatenation.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConcatenation._pretty
nltk.sem.drt.DrtConcatenation.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtConcatenation._pretty_subex
nltk.sem.drt.DrtConcatenation.html#_pretty_subex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtConcatenation.visit
nltk.sem.drt.DrtConcatenation.html#visit
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtConcatenation.__str__
nltk.sem.drt.DrtConcatenation.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtConcatenation._str_subex
nltk.sem.drt.DrtConcatenation.html#_str_subex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrtApplicationExpression
nltk.sem.drt.DrtApplicationExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/3 method documented
-
nltk.sem.drt.DrtApplicationExpression.fol
nltk.sem.drt.DrtApplicationExpression.html#fol
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.DrtApplicationExpression.get_refs
nltk.sem.drt.DrtApplicationExpression.html#get_refs
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrtApplicationExpression._pretty
nltk.sem.drt.DrtApplicationExpression.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt._pad_vertically
nltk.sem.drt.html#_pad_vertically
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.sem.drt.PossibleAntecedents
nltk.sem.drt.PossibleAntecedents.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 2/4 methods documented
-
nltk.sem.drt.PossibleAntecedents.free
nltk.sem.drt.PossibleAntecedents.html#free
ZopeInterfaceFunction
Method
VISIBLE
Set of free variables.
-
nltk.sem.drt.PossibleAntecedents.replace
nltk.sem.drt.PossibleAntecedents.html#replace
ZopeInterfaceFunction
Method
VISIBLE
Replace all instances of variable v with expression E in self, where v is free in self.
-
nltk.sem.drt.PossibleAntecedents._pretty
nltk.sem.drt.PossibleAntecedents.html#_pretty
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.PossibleAntecedents.__str__
nltk.sem.drt.PossibleAntecedents.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt.AnaphoraResolutionException
nltk.sem.drt.AnaphoraResolutionException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt.resolve_anaphora
nltk.sem.drt.html#resolve_anaphora
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.drt.DrsDrawer
nltk.sem.drt.DrsDrawer.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 0/3 class variable, 8/15 methods documented
-
nltk.sem.drt.DrsDrawer.BUFFER
nltk.sem.drt.DrsDrawer.html#BUFFER
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrsDrawer.TOPSPACE
nltk.sem.drt.DrsDrawer.html#TOPSPACE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrsDrawer.OUTERSPACE
nltk.sem.drt.DrsDrawer.html#OUTERSPACE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrsDrawer.__init__
nltk.sem.drt.DrsDrawer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.drt.DrsDrawer.canvas
nltk.sem.drt.DrsDrawer.html#canvas
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrsDrawer.drs
nltk.sem.drt.DrsDrawer.html#drs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrsDrawer.master
nltk.sem.drt.DrsDrawer.html#master
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt.DrsDrawer._get_text_height
nltk.sem.drt.DrsDrawer.html#_get_text_height
ZopeInterfaceFunction
Method
PRIVATE
Get the height of a line of text
-
nltk.sem.drt.DrsDrawer.draw
nltk.sem.drt.DrsDrawer.html#draw
ZopeInterfaceFunction
Method
VISIBLE
Draw the DRS
-
nltk.sem.drt.DrsDrawer._visit
nltk.sem.drt.DrsDrawer.html#_visit
ZopeInterfaceFunction
Method
PRIVATE
Return the bottom-rightmost point without actually drawing the item
-
nltk.sem.drt.DrsDrawer._draw_command
nltk.sem.drt.DrsDrawer.html#_draw_command
ZopeInterfaceFunction
Method
PRIVATE
Draw the given item at the given location
-
nltk.sem.drt.DrsDrawer._visit_command
nltk.sem.drt.DrsDrawer.html#_visit_command
ZopeInterfaceFunction
Method
PRIVATE
Return the bottom-rightmost point without actually drawing the item
-
nltk.sem.drt.DrsDrawer._handle
nltk.sem.drt.DrsDrawer.html#_handle
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.sem.drt.DrsDrawer._handle_VariableExpression
nltk.sem.drt.DrsDrawer.html#_handle_VariableExpression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrsDrawer._handle_NegatedExpression
nltk.sem.drt.DrsDrawer.html#_handle_NegatedExpression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrsDrawer._handle_DRS
nltk.sem.drt.DrsDrawer.html#_handle_DRS
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrsDrawer._handle_ApplicationExpression
nltk.sem.drt.DrsDrawer.html#_handle_ApplicationExpression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrsDrawer._handle_LambdaExpression
nltk.sem.drt.DrsDrawer.html#_handle_LambdaExpression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrsDrawer._handle_BinaryExpression
nltk.sem.drt.DrsDrawer.html#_handle_BinaryExpression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrsDrawer._handle_DrtProposition
nltk.sem.drt.DrsDrawer.html#_handle_DrtProposition
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt.DrsDrawer._get_centered_top
nltk.sem.drt.DrsDrawer.html#_get_centered_top
ZopeInterfaceFunction
Method
PRIVATE
Get the y-coordinate of the point that a figure should start at if its height is 'item_height' and it needs to be centered in an area that starts at 'top' and is 'full_height' tall.
-
nltk.sem.drt.demo
nltk.sem.drt.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.drt.test_draw
nltk.sem.drt.html#test_draw
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.boxer.Boxer
nltk.sem.boxer.Boxer.html
ZopeInterfaceClass
Class
VISIBLE
This class is an interface to Johan Bos's program Boxer, a wide-coverage semantic parser that produces Discourse Representation Structures (DRSs).
-
nltk.sem.boxer.Boxer.__init__
nltk.sem.boxer.Boxer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.boxer.Boxer._boxer_drs_interpreter
nltk.sem.boxer.Boxer.html#_boxer_drs_interpreter
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.boxer.Boxer._resolve
nltk.sem.boxer.Boxer.html#_resolve
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.boxer.Boxer._elimeq
nltk.sem.boxer.Boxer.html#_elimeq
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.boxer.Boxer.set_bin_dir
nltk.sem.boxer.Boxer.html#set_bin_dir
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.Boxer._candc_bin
nltk.sem.boxer.Boxer.html#_candc_bin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.boxer.Boxer._candc_models_path
nltk.sem.boxer.Boxer.html#_candc_models_path
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.boxer.Boxer._boxer_bin
nltk.sem.boxer.Boxer.html#_boxer_bin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.boxer.Boxer.interpret
nltk.sem.boxer.Boxer.html#interpret
ZopeInterfaceFunction
Method
VISIBLE
Use Boxer to give a first order representation.
-
nltk.sem.boxer.Boxer.interpret_multi
nltk.sem.boxer.Boxer.html#interpret_multi
ZopeInterfaceFunction
Method
VISIBLE
Use Boxer to give a first order representation.
-
nltk.sem.boxer.Boxer.interpret_sents
nltk.sem.boxer.Boxer.html#interpret_sents
ZopeInterfaceFunction
Method
VISIBLE
Use Boxer to give a first order representation.
-
nltk.sem.boxer.Boxer.interpret_multi_sents
nltk.sem.boxer.Boxer.html#interpret_multi_sents
ZopeInterfaceFunction
Method
VISIBLE
Use Boxer to give a first order representation.
-
nltk.sem.boxer.Boxer._call_candc
nltk.sem.boxer.Boxer.html#_call_candc
ZopeInterfaceFunction
Method
PRIVATE
Call the candc binary with the given input.
-
nltk.sem.boxer.Boxer._call_boxer
nltk.sem.boxer.Boxer.html#_call_boxer
ZopeInterfaceFunction
Method
PRIVATE
Call the boxer binary with the given input.
-
nltk.sem.boxer.Boxer._find_binary
nltk.sem.boxer.Boxer.html#_find_binary
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.Boxer._call
nltk.sem.boxer.Boxer.html#_call
ZopeInterfaceFunction
Method
PRIVATE
Call the binary with the given input.
-
nltk.sem.boxer.Boxer._parse_to_drs_dict
nltk.sem.boxer.Boxer.html#_parse_to_drs_dict
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.Boxer._parse_drs
nltk.sem.boxer.Boxer.html#_parse_drs
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser
nltk.sem.boxer.BoxerOutputDrsParser.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 4/31 methods documented
-
nltk.sem.boxer.BoxerOutputDrsParser.__init__
nltk.sem.boxer.BoxerOutputDrsParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
This class is used to parse the Prolog DRS output from Boxer into a hierarchy of python objects.
-
nltk.sem.boxer.BoxerOutputDrsParser.discourse_id
nltk.sem.boxer.BoxerOutputDrsParser.html#discourse_id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser.sentence_id_offset
nltk.sem.boxer.BoxerOutputDrsParser.html#sentence_id_offset
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser.quote_chars
nltk.sem.boxer.BoxerOutputDrsParser.html#quote_chars
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser.parse
nltk.sem.boxer.BoxerOutputDrsParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Parse the expression.
-
nltk.sem.boxer.BoxerOutputDrsParser.get_all_symbols
nltk.sem.boxer.BoxerOutputDrsParser.html#get_all_symbols
ZopeInterfaceFunction
Method
VISIBLE
This method exists to be overridden
-
nltk.sem.boxer.BoxerOutputDrsParser.handle
nltk.sem.boxer.BoxerOutputDrsParser.html#handle
ZopeInterfaceFunction
Method
VISIBLE
This method is intended to be overridden for logics that use different operators or expressions
-
nltk.sem.boxer.BoxerOutputDrsParser.attempt_adjuncts
nltk.sem.boxer.BoxerOutputDrsParser.html#attempt_adjuncts
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser.parse_condition
nltk.sem.boxer.BoxerOutputDrsParser.html#parse_condition
ZopeInterfaceFunction
Method
VISIBLE
Parse a DRS condition
-
nltk.sem.boxer.BoxerOutputDrsParser.handle_drs
nltk.sem.boxer.BoxerOutputDrsParser.html#handle_drs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser.handle_condition
nltk.sem.boxer.BoxerOutputDrsParser.html#handle_condition
ZopeInterfaceFunction
Method
VISIBLE
Handle a DRS condition
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_not
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_not
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_pred
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_duplex
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_duplex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_named
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_named
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_rel
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_rel
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_timex
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_timex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_time_expression
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_time_expression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_date
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_date
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_time
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_time
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_card
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_card
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_prop
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_prop
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._parse_index_list
nltk.sem.boxer.BoxerOutputDrsParser.html#_parse_index_list
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser.parse_drs
nltk.sem.boxer.BoxerOutputDrsParser.html#parse_drs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_binary_expression
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_binary_expression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_alfa
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_alfa
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_eq
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_eq
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._handle_whq
nltk.sem.boxer.BoxerOutputDrsParser.html#_handle_whq
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._make_merge_expression
nltk.sem.boxer.BoxerOutputDrsParser.html#_make_merge_expression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._make_or_expression
nltk.sem.boxer.BoxerOutputDrsParser.html#_make_or_expression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._make_imp_expression
nltk.sem.boxer.BoxerOutputDrsParser.html#_make_imp_expression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser.parse_variable
nltk.sem.boxer.BoxerOutputDrsParser.html#parse_variable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser.parse_index
nltk.sem.boxer.BoxerOutputDrsParser.html#parse_index
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOutputDrsParser._sent_and_word_indices
nltk.sem.boxer.BoxerOutputDrsParser.html#_sent_and_word_indices
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerDrsParser
nltk.sem.boxer.BoxerDrsParser.html
ZopeInterfaceClass
Class
VISIBLE
Reparse the str form of subclasses of AbstractBoxerDrs
-
nltk.sem.boxer.BoxerDrsParser.__init__
nltk.sem.boxer.BoxerDrsParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.boxer.BoxerDrsParser.discourse_id
nltk.sem.boxer.BoxerDrsParser.html#discourse_id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrsParser.get_all_symbols
nltk.sem.boxer.BoxerDrsParser.html#get_all_symbols
ZopeInterfaceFunction
Method
VISIBLE
This method exists to be overridden
-
nltk.sem.boxer.BoxerDrsParser.attempt_adjuncts
nltk.sem.boxer.BoxerDrsParser.html#attempt_adjuncts
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrsParser.handle
nltk.sem.boxer.BoxerDrsParser.html#handle
ZopeInterfaceFunction
Method
VISIBLE
This method is intended to be overridden for logics that use different operators or expressions
-
nltk.sem.boxer.BoxerDrsParser.nullableIntToken
nltk.sem.boxer.BoxerDrsParser.html#nullableIntToken
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrsParser.get_next_token_variable
nltk.sem.boxer.BoxerDrsParser.html#get_next_token_variable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.AbstractBoxerDrs
nltk.sem.boxer.AbstractBoxerDrs.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 2/8 methods documented
-
nltk.sem.boxer.AbstractBoxerDrs.variables
nltk.sem.boxer.AbstractBoxerDrs.html#variables
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.boxer.AbstractBoxerDrs.variable_types
nltk.sem.boxer.AbstractBoxerDrs.html#variable_types
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.AbstractBoxerDrs._variables
nltk.sem.boxer.AbstractBoxerDrs.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.AbstractBoxerDrs.atoms
nltk.sem.boxer.AbstractBoxerDrs.html#atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.AbstractBoxerDrs.clean
nltk.sem.boxer.AbstractBoxerDrs.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.AbstractBoxerDrs._clean_name
nltk.sem.boxer.AbstractBoxerDrs.html#_clean_name
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.AbstractBoxerDrs.renumber_sentences
nltk.sem.boxer.AbstractBoxerDrs.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.AbstractBoxerDrs.__hash__
nltk.sem.boxer.AbstractBoxerDrs.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs
nltk.sem.boxer.BoxerDrs.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.__init__
nltk.sem.boxer.BoxerDrs.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.refs
nltk.sem.boxer.BoxerDrs.html#refs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.conds
nltk.sem.boxer.BoxerDrs.html#conds
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.consequent
nltk.sem.boxer.BoxerDrs.html#consequent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs._variables
nltk.sem.boxer.BoxerDrs.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerDrs.atoms
nltk.sem.boxer.BoxerDrs.html#atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.clean
nltk.sem.boxer.BoxerDrs.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.renumber_sentences
nltk.sem.boxer.BoxerDrs.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.__repr__
nltk.sem.boxer.BoxerDrs.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.__eq__
nltk.sem.boxer.BoxerDrs.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerDrs.__ne__
nltk.sem.boxer.BoxerDrs.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot
nltk.sem.boxer.BoxerNot.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot.__init__
nltk.sem.boxer.BoxerNot.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot.drs
nltk.sem.boxer.BoxerNot.html#drs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot._variables
nltk.sem.boxer.BoxerNot.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerNot.atoms
nltk.sem.boxer.BoxerNot.html#atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot.clean
nltk.sem.boxer.BoxerNot.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot.renumber_sentences
nltk.sem.boxer.BoxerNot.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot.__repr__
nltk.sem.boxer.BoxerNot.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot.__eq__
nltk.sem.boxer.BoxerNot.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNot.__ne__
nltk.sem.boxer.BoxerNot.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed
nltk.sem.boxer.BoxerIndexed.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed.__init__
nltk.sem.boxer.BoxerIndexed.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed.discourse_id
nltk.sem.boxer.BoxerIndexed.html#discourse_id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed.sent_index
nltk.sem.boxer.BoxerIndexed.html#sent_index
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed.word_indices
nltk.sem.boxer.BoxerIndexed.html#word_indices
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed.atoms
nltk.sem.boxer.BoxerIndexed.html#atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed.__eq__
nltk.sem.boxer.BoxerIndexed.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed.__ne__
nltk.sem.boxer.BoxerIndexed.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerIndexed.__repr__
nltk.sem.boxer.BoxerIndexed.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred
nltk.sem.boxer.BoxerPred.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred.__init__
nltk.sem.boxer.BoxerPred.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred.var
nltk.sem.boxer.BoxerPred.html#var
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred.name
nltk.sem.boxer.BoxerPred.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred.pos
nltk.sem.boxer.BoxerPred.html#pos
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred.sense
nltk.sem.boxer.BoxerPred.html#sense
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred._variables
nltk.sem.boxer.BoxerPred.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerPred.change_var
nltk.sem.boxer.BoxerPred.html#change_var
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred.clean
nltk.sem.boxer.BoxerPred.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred.renumber_sentences
nltk.sem.boxer.BoxerPred.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred.__iter__
nltk.sem.boxer.BoxerPred.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerPred._pred
nltk.sem.boxer.BoxerPred.html#_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerNamed
nltk.sem.boxer.BoxerNamed.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed.__init__
nltk.sem.boxer.BoxerNamed.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed.var
nltk.sem.boxer.BoxerNamed.html#var
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed.name
nltk.sem.boxer.BoxerNamed.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed.type
nltk.sem.boxer.BoxerNamed.html#type
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed.sense
nltk.sem.boxer.BoxerNamed.html#sense
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed._variables
nltk.sem.boxer.BoxerNamed.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerNamed.change_var
nltk.sem.boxer.BoxerNamed.html#change_var
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed.clean
nltk.sem.boxer.BoxerNamed.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed.renumber_sentences
nltk.sem.boxer.BoxerNamed.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed.__iter__
nltk.sem.boxer.BoxerNamed.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerNamed._pred
nltk.sem.boxer.BoxerNamed.html#_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerRel
nltk.sem.boxer.BoxerRel.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel.__init__
nltk.sem.boxer.BoxerRel.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel.var1
nltk.sem.boxer.BoxerRel.html#var1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel.var2
nltk.sem.boxer.BoxerRel.html#var2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel.rel
nltk.sem.boxer.BoxerRel.html#rel
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel.sense
nltk.sem.boxer.BoxerRel.html#sense
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel._variables
nltk.sem.boxer.BoxerRel.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerRel.clean
nltk.sem.boxer.BoxerRel.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel.renumber_sentences
nltk.sem.boxer.BoxerRel.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel.__iter__
nltk.sem.boxer.BoxerRel.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerRel._pred
nltk.sem.boxer.BoxerRel.html#_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerProp
nltk.sem.boxer.BoxerProp.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp.__init__
nltk.sem.boxer.BoxerProp.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp.var
nltk.sem.boxer.BoxerProp.html#var
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp.drs
nltk.sem.boxer.BoxerProp.html#drs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp._variables
nltk.sem.boxer.BoxerProp.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerProp.referenced_labels
nltk.sem.boxer.BoxerProp.html#referenced_labels
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp.atoms
nltk.sem.boxer.BoxerProp.html#atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp.clean
nltk.sem.boxer.BoxerProp.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp.renumber_sentences
nltk.sem.boxer.BoxerProp.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp.__iter__
nltk.sem.boxer.BoxerProp.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerProp._pred
nltk.sem.boxer.BoxerProp.html#_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerEq
nltk.sem.boxer.BoxerEq.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerEq.__init__
nltk.sem.boxer.BoxerEq.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerEq.var1
nltk.sem.boxer.BoxerEq.html#var1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerEq.var2
nltk.sem.boxer.BoxerEq.html#var2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerEq._variables
nltk.sem.boxer.BoxerEq.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerEq.atoms
nltk.sem.boxer.BoxerEq.html#atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerEq.renumber_sentences
nltk.sem.boxer.BoxerEq.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerEq.__iter__
nltk.sem.boxer.BoxerEq.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerEq._pred
nltk.sem.boxer.BoxerEq.html#_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerCard
nltk.sem.boxer.BoxerCard.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerCard.__init__
nltk.sem.boxer.BoxerCard.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerCard.var
nltk.sem.boxer.BoxerCard.html#var
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerCard.value
nltk.sem.boxer.BoxerCard.html#value
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerCard.type
nltk.sem.boxer.BoxerCard.html#type
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerCard._variables
nltk.sem.boxer.BoxerCard.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerCard.renumber_sentences
nltk.sem.boxer.BoxerCard.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerCard.__iter__
nltk.sem.boxer.BoxerCard.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerCard._pred
nltk.sem.boxer.BoxerCard.html#_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerOr
nltk.sem.boxer.BoxerOr.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOr.__init__
nltk.sem.boxer.BoxerOr.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOr.drs1
nltk.sem.boxer.BoxerOr.html#drs1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOr.drs2
nltk.sem.boxer.BoxerOr.html#drs2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOr._variables
nltk.sem.boxer.BoxerOr.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerOr.atoms
nltk.sem.boxer.BoxerOr.html#atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOr.clean
nltk.sem.boxer.BoxerOr.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOr.renumber_sentences
nltk.sem.boxer.BoxerOr.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOr.__iter__
nltk.sem.boxer.BoxerOr.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerOr._pred
nltk.sem.boxer.BoxerOr.html#_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.BoxerWhq
nltk.sem.boxer.BoxerWhq.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq.__init__
nltk.sem.boxer.BoxerWhq.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq.ans_types
nltk.sem.boxer.BoxerWhq.html#ans_types
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq.drs1
nltk.sem.boxer.BoxerWhq.html#drs1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq.variable
nltk.sem.boxer.BoxerWhq.html#variable
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq.drs2
nltk.sem.boxer.BoxerWhq.html#drs2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq._variables
nltk.sem.boxer.BoxerWhq.html#_variables
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.boxer.BoxerWhq.atoms
nltk.sem.boxer.BoxerWhq.html#atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq.clean
nltk.sem.boxer.BoxerWhq.html#clean
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq.renumber_sentences
nltk.sem.boxer.BoxerWhq.html#renumber_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq.__iter__
nltk.sem.boxer.BoxerWhq.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.BoxerWhq._pred
nltk.sem.boxer.BoxerWhq.html#_pred
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.PassthroughBoxerDrsInterpreter
nltk.sem.boxer.PassthroughBoxerDrsInterpreter.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.PassthroughBoxerDrsInterpreter.interpret
nltk.sem.boxer.PassthroughBoxerDrsInterpreter.html#interpret
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 1/4 method documented
-
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter.__init__
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter._occur_index
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter.html#_occur_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter.interpret
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter.html#interpret
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter._make_atom
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter.html#_make_atom
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter._add_occur_indexing
nltk.sem.boxer.NltkDrtBoxerDrsInterpreter.html#_add_occur_indexing
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.boxer.UnparseableInputException
nltk.sem.boxer.UnparseableInputException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.boxer.opts
nltk.sem.boxer.html#opts
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.options
nltk.sem.boxer.html#options
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.args
nltk.sem.boxer.html#args
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.interpreter
nltk.sem.boxer.html#interpreter
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.boxer.drs
nltk.sem.boxer.html#drs
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureTreeEdge
nltk.parse.featurechart.FeatureTreeEdge.html
ZopeInterfaceClass
Class
VISIBLE
A specialized tree edge that allows shared variable bindings between nonterminals on the left-hand side and right-hand side.
-
nltk.parse.featurechart.FeatureTreeEdge.__init__
nltk.parse.featurechart.FeatureTreeEdge.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureTreeEdge._bindings
nltk.parse.featurechart.FeatureTreeEdge.html#_bindings
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.featurechart.FeatureTreeEdge._comparison_key
nltk.parse.featurechart.FeatureTreeEdge.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.featurechart.FeatureTreeEdge.from_production
nltk.parse.featurechart.FeatureTreeEdge.html#from_production
ZopeInterfaceFunction
Static Method
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureTreeEdge.move_dot_forward
nltk.parse.featurechart.FeatureTreeEdge.html#move_dot_forward
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureTreeEdge._bind
nltk.parse.featurechart.FeatureTreeEdge.html#_bind
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.featurechart.FeatureTreeEdge.next_with_bindings
nltk.parse.featurechart.FeatureTreeEdge.html#next_with_bindings
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureTreeEdge.bindings
nltk.parse.featurechart.FeatureTreeEdge.html#bindings
ZopeInterfaceFunction
Method
VISIBLE
Return a copy of this edge's bindings dictionary.
-
nltk.parse.featurechart.FeatureTreeEdge.variables
nltk.parse.featurechart.FeatureTreeEdge.html#variables
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.featurechart.FeatureTreeEdge.__str__
nltk.parse.featurechart.FeatureTreeEdge.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureChart
nltk.parse.featurechart.FeatureChart.html
ZopeInterfaceClass
Class
VISIBLE
A Chart for feature grammars. :see: Chart for more information.
-
nltk.parse.featurechart.FeatureChart.select
nltk.parse.featurechart.FeatureChart.html#select
ZopeInterfaceFunction
Method
VISIBLE
Returns an iterator over the edges in this chart. See Chart.select for more information about the restrictions on the edges.
-
nltk.parse.featurechart.FeatureChart._add_index
nltk.parse.featurechart.FeatureChart.html#_add_index
ZopeInterfaceFunction
Method
PRIVATE
A helper function for select, which creates a new index for a given set of attributes (aka restriction keys).
-
nltk.parse.featurechart.FeatureChart._register_with_indexes
nltk.parse.featurechart.FeatureChart.html#_register_with_indexes
ZopeInterfaceFunction
Method
PRIVATE
A helper function for insert, which registers the new edge with all existing indexes.
-
nltk.parse.featurechart.FeatureChart._get_type_if_possible
nltk.parse.featurechart.FeatureChart.html#_get_type_if_possible
ZopeInterfaceFunction
Method
PRIVATE
Helper function which returns the TYPE feature of the item, if it exists, otherwise it returns the item itself
-
nltk.parse.featurechart.FeatureChart.parses
nltk.parse.featurechart.FeatureChart.html#parses
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator of the complete tree structures that span the entire chart, and whose root node is root.
-
nltk.parse.featurechart.FeatureFundamentalRule
nltk.parse.featurechart.FeatureFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureFundamentalRule.apply
nltk.parse.featurechart.FeatureFundamentalRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule
nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule._fundamental_rule
nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule.html#_fundamental_rule
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule._apply_complete
nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule.html#_apply_complete
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule._apply_incomplete
nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule.html#_apply_incomplete
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.featurechart.FeatureTopDownInitRule
nltk.parse.featurechart.FeatureTopDownInitRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureTopDownInitRule.apply
nltk.parse.featurechart.FeatureTopDownInitRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureTopDownPredictRule
nltk.parse.featurechart.FeatureTopDownPredictRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureTopDownPredictRule.apply
nltk.parse.featurechart.FeatureTopDownPredictRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureBottomUpPredictRule
nltk.parse.featurechart.FeatureBottomUpPredictRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureBottomUpPredictRule.apply
nltk.parse.featurechart.FeatureBottomUpPredictRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureBottomUpPredictCombineRule
nltk.parse.featurechart.FeatureBottomUpPredictCombineRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureBottomUpPredictCombineRule.apply
nltk.parse.featurechart.FeatureBottomUpPredictCombineRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.FeatureEmptyPredictRule
nltk.parse.featurechart.FeatureEmptyPredictRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureEmptyPredictRule.apply
nltk.parse.featurechart.FeatureEmptyPredictRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.TD_FEATURE_STRATEGY
nltk.parse.featurechart.html#TD_FEATURE_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.featurechart.BU_FEATURE_STRATEGY
nltk.parse.featurechart.html#BU_FEATURE_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.featurechart.BU_LC_FEATURE_STRATEGY
nltk.parse.featurechart.html#BU_LC_FEATURE_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureChartParser
nltk.parse.featurechart.FeatureChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureChartParser.__init__
nltk.parse.featurechart.FeatureChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.featurechart.FeatureTopDownChartParser
nltk.parse.featurechart.FeatureTopDownChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureTopDownChartParser.__init__
nltk.parse.featurechart.FeatureTopDownChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.featurechart.FeatureBottomUpChartParser
nltk.parse.featurechart.FeatureBottomUpChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureBottomUpChartParser.__init__
nltk.parse.featurechart.FeatureBottomUpChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.featurechart.FeatureBottomUpLeftCornerChartParser
nltk.parse.featurechart.FeatureBottomUpLeftCornerChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.featurechart.FeatureBottomUpLeftCornerChartParser.__init__
nltk.parse.featurechart.FeatureBottomUpLeftCornerChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chart parser, that uses grammar to parse texts.
-
nltk.parse.featurechart.InstantiateVarsChart
nltk.parse.featurechart.InstantiateVarsChart.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.featurechart.InstantiateVarsChart.__init__
nltk.parse.featurechart.InstantiateVarsChart.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new chart. The chart is initialized with the leaf edges corresponding to the terminal leaves.
-
nltk.parse.featurechart.InstantiateVarsChart.initialize
nltk.parse.featurechart.InstantiateVarsChart.html#initialize
ZopeInterfaceFunction
Method
VISIBLE
Clear the chart.
-
nltk.parse.featurechart.InstantiateVarsChart._instantiated
nltk.parse.featurechart.InstantiateVarsChart.html#_instantiated
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.featurechart.InstantiateVarsChart.insert
nltk.parse.featurechart.InstantiateVarsChart.html#insert
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.featurechart.InstantiateVarsChart.instantiate_edge
nltk.parse.featurechart.InstantiateVarsChart.html#instantiate_edge
ZopeInterfaceFunction
Method
VISIBLE
If the edge is a FeatureTreeEdge, and it is complete, then instantiate all variables whose names start with '@', by replacing them with unique new variables.
-
nltk.parse.featurechart.InstantiateVarsChart.inst_vars
nltk.parse.featurechart.InstantiateVarsChart.html#inst_vars
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.featurechart.demo_grammar
nltk.parse.featurechart.html#demo_grammar
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.featurechart.demo
nltk.parse.featurechart.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.featurechart.run_profile
nltk.parse.featurechart.html#run_profile
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.featurechart.grammar
nltk.parse.featurechart.html#grammar
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.featurechart.cp
nltk.parse.featurechart.html#cp
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.featurechart.sent
nltk.parse.featurechart.html#sent
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.featurechart.tokens
nltk.parse.featurechart.html#tokens
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.featurechart.trees
nltk.parse.featurechart.html#trees
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.IncrementalChart
nltk.parse.earleychart.IncrementalChart.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.IncrementalChart.initialize
nltk.parse.earleychart.IncrementalChart.html#initialize
ZopeInterfaceFunction
Method
VISIBLE
Clear the chart.
-
nltk.parse.earleychart.IncrementalChart._edgelists
nltk.parse.earleychart.IncrementalChart.html#_edgelists
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChart._edge_to_cpls
nltk.parse.earleychart.IncrementalChart.html#_edge_to_cpls
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChart._indexes
nltk.parse.earleychart.IncrementalChart.html#_indexes
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChart.edges
nltk.parse.earleychart.IncrementalChart.html#edges
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all edges in this chart. New edges that are added to the chart after the call to edges() will not be contained in this list.
-
nltk.parse.earleychart.IncrementalChart.iteredges
nltk.parse.earleychart.IncrementalChart.html#iteredges
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator over the edges in this chart. It is not guaranteed that new edges which are added to the chart before the iterator is exhausted will also be generated.
-
nltk.parse.earleychart.IncrementalChart.select
nltk.parse.earleychart.IncrementalChart.html#select
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.earleychart.IncrementalChart._add_index
nltk.parse.earleychart.IncrementalChart.html#_add_index
ZopeInterfaceFunction
Method
PRIVATE
A helper function for select, which creates a new index for a given set of attributes (aka restriction keys).
-
nltk.parse.earleychart.IncrementalChart._register_with_indexes
nltk.parse.earleychart.IncrementalChart.html#_register_with_indexes
ZopeInterfaceFunction
Method
PRIVATE
A helper function for insert, which registers the new edge with all existing indexes.
-
nltk.parse.earleychart.IncrementalChart._append_edge
nltk.parse.earleychart.IncrementalChart.html#_append_edge
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChart._positions
nltk.parse.earleychart.IncrementalChart.html#_positions
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.earleychart.FeatureIncrementalChart
nltk.parse.earleychart.FeatureIncrementalChart.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureIncrementalChart.select
nltk.parse.earleychart.FeatureIncrementalChart.html#select
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.earleychart.FeatureIncrementalChart._add_index
nltk.parse.earleychart.FeatureIncrementalChart.html#_add_index
ZopeInterfaceFunction
Method
PRIVATE
A helper function for select, which creates a new index for a given set of attributes (aka restriction keys).
-
nltk.parse.earleychart.FeatureIncrementalChart._register_with_indexes
nltk.parse.earleychart.FeatureIncrementalChart.html#_register_with_indexes
ZopeInterfaceFunction
Method
PRIVATE
A helper function for insert, which registers the new edge with all existing indexes.
-
nltk.parse.earleychart.CompleteFundamentalRule
nltk.parse.earleychart.CompleteFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.CompleteFundamentalRule._apply_incomplete
nltk.parse.earleychart.CompleteFundamentalRule.html#_apply_incomplete
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.earleychart.CompleterRule
nltk.parse.earleychart.CompleterRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.CompleterRule._fundamental_rule
nltk.parse.earleychart.CompleterRule.html#_fundamental_rule
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.CompleterRule.apply
nltk.parse.earleychart.CompleterRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.earleychart.ScannerRule
nltk.parse.earleychart.ScannerRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.ScannerRule._fundamental_rule
nltk.parse.earleychart.ScannerRule.html#_fundamental_rule
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.ScannerRule.apply
nltk.parse.earleychart.ScannerRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.earleychart.PredictorRule
nltk.parse.earleychart.PredictorRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FilteredCompleteFundamentalRule
nltk.parse.earleychart.FilteredCompleteFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FilteredCompleteFundamentalRule.apply
nltk.parse.earleychart.FilteredCompleteFundamentalRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.earleychart.FeatureCompleteFundamentalRule
nltk.parse.earleychart.FeatureCompleteFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureCompleteFundamentalRule._apply_incomplete
nltk.parse.earleychart.FeatureCompleteFundamentalRule.html#_apply_incomplete
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.earleychart.FeatureCompleterRule
nltk.parse.earleychart.FeatureCompleterRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureCompleterRule._fundamental_rule
nltk.parse.earleychart.FeatureCompleterRule.html#_fundamental_rule
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.FeatureScannerRule
nltk.parse.earleychart.FeatureScannerRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureScannerRule._fundamental_rule
nltk.parse.earleychart.FeatureScannerRule.html#_fundamental_rule
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.FeaturePredictorRule
nltk.parse.earleychart.FeaturePredictorRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.EARLEY_STRATEGY
nltk.parse.earleychart.html#EARLEY_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.TD_INCREMENTAL_STRATEGY
nltk.parse.earleychart.html#TD_INCREMENTAL_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.BU_INCREMENTAL_STRATEGY
nltk.parse.earleychart.html#BU_INCREMENTAL_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.BU_LC_INCREMENTAL_STRATEGY
nltk.parse.earleychart.html#BU_LC_INCREMENTAL_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.LC_INCREMENTAL_STRATEGY
nltk.parse.earleychart.html#LC_INCREMENTAL_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.IncrementalChartParser
nltk.parse.earleychart.IncrementalChartParser.html
ZopeInterfaceClass
Class
VISIBLE
An incremental chart parser implementing Jay Earley's parsing algorithm:
-
nltk.parse.earleychart.IncrementalChartParser.__init__
nltk.parse.earleychart.IncrementalChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.IncrementalChartParser._grammar
nltk.parse.earleychart.IncrementalChartParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChartParser._trace
nltk.parse.earleychart.IncrementalChartParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChartParser._trace_chart_width
nltk.parse.earleychart.IncrementalChartParser.html#_trace_chart_width
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChartParser._chart_class
nltk.parse.earleychart.IncrementalChartParser.html#_chart_class
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChartParser._axioms
nltk.parse.earleychart.IncrementalChartParser.html#_axioms
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChartParser._inference_rules
nltk.parse.earleychart.IncrementalChartParser.html#_inference_rules
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.earleychart.IncrementalChartParser.chart_parse
nltk.parse.earleychart.IncrementalChartParser.html#chart_parse
ZopeInterfaceFunction
Method
VISIBLE
Return the final parse Chart from which all possible parse trees can be extracted.
-
nltk.parse.earleychart.EarleyChartParser
nltk.parse.earleychart.EarleyChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.EarleyChartParser.__init__
nltk.parse.earleychart.EarleyChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.IncrementalTopDownChartParser
nltk.parse.earleychart.IncrementalTopDownChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.IncrementalTopDownChartParser.__init__
nltk.parse.earleychart.IncrementalTopDownChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.IncrementalBottomUpChartParser
nltk.parse.earleychart.IncrementalBottomUpChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.IncrementalBottomUpChartParser.__init__
nltk.parse.earleychart.IncrementalBottomUpChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.IncrementalBottomUpLeftCornerChartParser
nltk.parse.earleychart.IncrementalBottomUpLeftCornerChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.IncrementalBottomUpLeftCornerChartParser.__init__
nltk.parse.earleychart.IncrementalBottomUpLeftCornerChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.IncrementalLeftCornerChartParser
nltk.parse.earleychart.IncrementalLeftCornerChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.IncrementalLeftCornerChartParser.__init__
nltk.parse.earleychart.IncrementalLeftCornerChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.EARLEY_FEATURE_STRATEGY
nltk.parse.earleychart.html#EARLEY_FEATURE_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.TD_INCREMENTAL_FEATURE_STRATEGY
nltk.parse.earleychart.html#TD_INCREMENTAL_FEATURE_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.BU_INCREMENTAL_FEATURE_STRATEGY
nltk.parse.earleychart.html#BU_INCREMENTAL_FEATURE_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.BU_LC_INCREMENTAL_FEATURE_STRATEGY
nltk.parse.earleychart.html#BU_LC_INCREMENTAL_FEATURE_STRATEGY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureIncrementalChartParser
nltk.parse.earleychart.FeatureIncrementalChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureIncrementalChartParser.__init__
nltk.parse.earleychart.FeatureIncrementalChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.FeatureEarleyChartParser
nltk.parse.earleychart.FeatureEarleyChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureEarleyChartParser.__init__
nltk.parse.earleychart.FeatureEarleyChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.FeatureIncrementalTopDownChartParser
nltk.parse.earleychart.FeatureIncrementalTopDownChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureIncrementalTopDownChartParser.__init__
nltk.parse.earleychart.FeatureIncrementalTopDownChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.FeatureIncrementalBottomUpChartParser
nltk.parse.earleychart.FeatureIncrementalBottomUpChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureIncrementalBottomUpChartParser.__init__
nltk.parse.earleychart.FeatureIncrementalBottomUpChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.FeatureIncrementalBottomUpLeftCornerChartParser
nltk.parse.earleychart.FeatureIncrementalBottomUpLeftCornerChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.earleychart.FeatureIncrementalBottomUpLeftCornerChartParser.__init__
nltk.parse.earleychart.FeatureIncrementalBottomUpLeftCornerChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new Earley chart parser, that uses grammar to parse texts.
-
nltk.parse.earleychart.demo
nltk.parse.earleychart.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of the Earley parsers.
-
nltk.parse.pchart.ProbabilisticLeafEdge
nltk.parse.pchart.ProbabilisticLeafEdge.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticLeafEdge.prob
nltk.parse.pchart.ProbabilisticLeafEdge.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticTreeEdge
nltk.parse.pchart.ProbabilisticTreeEdge.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticTreeEdge.__init__
nltk.parse.pchart.ProbabilisticTreeEdge.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new TreeEdge.
-
nltk.parse.pchart.ProbabilisticTreeEdge._prob
nltk.parse.pchart.ProbabilisticTreeEdge.html#_prob
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.pchart.ProbabilisticTreeEdge._comparison_key
nltk.parse.pchart.ProbabilisticTreeEdge.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.pchart.ProbabilisticTreeEdge.prob
nltk.parse.pchart.ProbabilisticTreeEdge.html#prob
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticTreeEdge.from_production
nltk.parse.pchart.ProbabilisticTreeEdge.html#from_production
ZopeInterfaceFunction
Static Method
VISIBLE
No summary
-
nltk.parse.pchart.ProbabilisticBottomUpInitRule
nltk.parse.pchart.ProbabilisticBottomUpInitRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticBottomUpInitRule.NUM_EDGES
nltk.parse.pchart.ProbabilisticBottomUpInitRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticBottomUpInitRule.apply
nltk.parse.pchart.ProbabilisticBottomUpInitRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.pchart.ProbabilisticBottomUpPredictRule
nltk.parse.pchart.ProbabilisticBottomUpPredictRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticBottomUpPredictRule.NUM_EDGES
nltk.parse.pchart.ProbabilisticBottomUpPredictRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticBottomUpPredictRule.apply
nltk.parse.pchart.ProbabilisticBottomUpPredictRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.pchart.ProbabilisticFundamentalRule
nltk.parse.pchart.ProbabilisticFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticFundamentalRule.NUM_EDGES
nltk.parse.pchart.ProbabilisticFundamentalRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.pchart.ProbabilisticFundamentalRule.apply
nltk.parse.pchart.ProbabilisticFundamentalRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule.NUM_EDGES
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule.html#NUM_EDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule._fundamental_rule
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule.html#_fundamental_rule
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule.apply
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule.__str__
nltk.parse.pchart.SingleEdgeProbabilisticFundamentalRule.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.pchart.BottomUpProbabilisticChartParser
nltk.parse.pchart.BottomUpProbabilisticChartParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.pchart.BottomUpProbabilisticChartParser._grammar
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The grammar used to parse sentences.
-
nltk.parse.pchart.BottomUpProbabilisticChartParser._trace
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The level of tracing output that should be generated
when parsing a text.
-
nltk.parse.pchart.BottomUpProbabilisticChartParser.__init__
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new BottomUpProbabilisticChartParser, that uses grammar to parse texts.
-
nltk.parse.pchart.BottomUpProbabilisticChartParser.beam_size
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#beam_size
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.pchart.BottomUpProbabilisticChartParser.grammar
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#grammar
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.pchart.BottomUpProbabilisticChartParser.trace
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#trace
ZopeInterfaceFunction
Method
VISIBLE
Set the level of tracing output that should be generated when parsing a text.
-
nltk.parse.pchart.BottomUpProbabilisticChartParser.parse
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.pchart.BottomUpProbabilisticChartParser._setprob
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#_setprob
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.pchart.BottomUpProbabilisticChartParser.sort_queue
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#sort_queue
ZopeInterfaceFunction
Method
VISIBLE
Sort the given queue of Edge objects, placing the edge that should be tried first at the beginning of the queue. This method will be called after each Edge is added to the queue.
-
nltk.parse.pchart.BottomUpProbabilisticChartParser._prune
nltk.parse.pchart.BottomUpProbabilisticChartParser.html#_prune
ZopeInterfaceFunction
Method
PRIVATE
Discard items in the queue if the queue is longer than the beam.
-
nltk.parse.pchart.InsideChartParser
nltk.parse.pchart.InsideChartParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.pchart.InsideChartParser.sort_queue
nltk.parse.pchart.InsideChartParser.html#sort_queue
ZopeInterfaceFunction
Method
VISIBLE
Sort the given queue of edges, in descending order of the inside probabilities of the edges' trees.
-
nltk.parse.pchart.RandomChartParser
nltk.parse.pchart.RandomChartParser.html
ZopeInterfaceClass
Class
VISIBLE
A bottom-up parser for PCFG grammars that tries edges in random order. This sorting order results in a random search strategy.
-
nltk.parse.pchart.RandomChartParser.sort_queue
nltk.parse.pchart.RandomChartParser.html#sort_queue
ZopeInterfaceFunction
Method
VISIBLE
Sort the given queue of Edge objects, placing the edge that should be tried first at the beginning of the queue. This method will be called after each Edge is added to the queue.
-
nltk.parse.pchart.UnsortedChartParser
nltk.parse.pchart.UnsortedChartParser.html
ZopeInterfaceClass
Class
VISIBLE
A bottom-up parser for PCFG grammars that tries edges in whatever order.
-
nltk.parse.pchart.UnsortedChartParser.sort_queue
nltk.parse.pchart.UnsortedChartParser.html#sort_queue
ZopeInterfaceFunction
Method
VISIBLE
Sort the given queue of Edge objects, placing the edge that should be tried first at the beginning of the queue. This method will be called after each Edge is added to the queue.
-
nltk.parse.pchart.LongestChartParser
nltk.parse.pchart.LongestChartParser.html
ZopeInterfaceClass
Class
VISIBLE
A bottom-up parser for PCFG grammars that tries longer edges before shorter ones. This sorting order results in a type of best-first search strategy.
-
nltk.parse.pchart.LongestChartParser.sort_queue
nltk.parse.pchart.LongestChartParser.html#sort_queue
ZopeInterfaceFunction
Method
VISIBLE
Sort the given queue of Edge objects, placing the edge that should be tried first at the beginning of the queue. This method will be called after each Edge is added to the queue.
-
nltk.parse.pchart.demo
nltk.parse.pchart.html#demo
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.parse.recursivedescent.RecursiveDescentParser
nltk.parse.recursivedescent.RecursiveDescentParser.html
ZopeInterfaceClass
Class
VISIBLE
A simple top-down CFG parser that parses texts by recursively expanding the fringe of a Tree, and matching it against a text.
-
nltk.parse.recursivedescent.RecursiveDescentParser.__init__
nltk.parse.recursivedescent.RecursiveDescentParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new RecursiveDescentParser, that uses grammar to parse texts.
-
nltk.parse.recursivedescent.RecursiveDescentParser._grammar
nltk.parse.recursivedescent.RecursiveDescentParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.RecursiveDescentParser._trace
nltk.parse.recursivedescent.RecursiveDescentParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.RecursiveDescentParser.grammar
nltk.parse.recursivedescent.RecursiveDescentParser.html#grammar
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.RecursiveDescentParser.parse
nltk.parse.recursivedescent.RecursiveDescentParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.RecursiveDescentParser._parse
nltk.parse.recursivedescent.RecursiveDescentParser.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
Recursively expand and match each elements of tree specified by frontier, to cover remaining_text. Return a list of all parses found.
-
nltk.parse.recursivedescent.RecursiveDescentParser._match
nltk.parse.recursivedescent.RecursiveDescentParser.html#_match
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.parse.recursivedescent.RecursiveDescentParser._expand
nltk.parse.recursivedescent.RecursiveDescentParser.html#_expand
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.parse.recursivedescent.RecursiveDescentParser._production_to_tree
nltk.parse.recursivedescent.RecursiveDescentParser.html#_production_to_tree
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.parse.recursivedescent.RecursiveDescentParser.trace
nltk.parse.recursivedescent.RecursiveDescentParser.html#trace
ZopeInterfaceFunction
Method
VISIBLE
Set the level of tracing output that should be generated when parsing a text.
-
nltk.parse.recursivedescent.RecursiveDescentParser._trace_fringe
nltk.parse.recursivedescent.RecursiveDescentParser.html#_trace_fringe
ZopeInterfaceFunction
Method
PRIVATE
Print trace output displaying the fringe of tree. The fringe of tree consists of all of its leaves and all of its childless subtrees.
-
nltk.parse.recursivedescent.RecursiveDescentParser._trace_tree
nltk.parse.recursivedescent.RecursiveDescentParser.html#_trace_tree
ZopeInterfaceFunction
Method
PRIVATE
Print trace output displaying the parser's current state.
-
nltk.parse.recursivedescent.RecursiveDescentParser._trace_start
nltk.parse.recursivedescent.RecursiveDescentParser.html#_trace_start
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.RecursiveDescentParser._trace_expand
nltk.parse.recursivedescent.RecursiveDescentParser.html#_trace_expand
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.RecursiveDescentParser._trace_match
nltk.parse.recursivedescent.RecursiveDescentParser.html#_trace_match
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.RecursiveDescentParser._trace_succeed
nltk.parse.recursivedescent.RecursiveDescentParser.html#_trace_succeed
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.RecursiveDescentParser._trace_backtrack
nltk.parse.recursivedescent.RecursiveDescentParser.html#_trace_backtrack
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html
ZopeInterfaceClass
Class
VISIBLE
A RecursiveDescentParser that allows you to step through the parsing process, performing a single operation at a time.
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._history
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_history
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of (rtext, tree, frontier) tripples,
containing the previous states of the parser. This history is
used to implement the backtrack operation.
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._tried_e
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_tried_e
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A record of all productions that have been tried
for a given tree. This record is used by expand to perform
the next untried production.
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._tried_m
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_tried_m
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A record of what tokens have been matched for a
given tree. This record is used by step to decide whether
or not to match a token.
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.__init__
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new RecursiveDescentParser, that uses grammar to parse texts.
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._rtext
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_rtext
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._tree
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_tree
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._frontier
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_frontier
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._parses
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_parses
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._freeze
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_freeze
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.parse
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.initialize
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#initialize
ZopeInterfaceFunction
Method
VISIBLE
Start parsing a given text. This sets the parser's tree to the start symbol, its frontier to the root node, and its remaining text to token['SUBTOKENS'].
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.remaining_text
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#remaining_text
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.frontier
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#frontier
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.tree
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#tree
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.step
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#step
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.expand
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#expand
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.match
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#match
ZopeInterfaceFunction
Method
VISIBLE
Match the first element of the frontier. In particular, if the first element of the frontier has the same type as the next text token, then substitute the text token into the tree.
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.backtrack
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#backtrack
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.expandable_productions
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#expandable_productions
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.untried_expandable_productions
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#untried_expandable_productions
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.untried_match
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#untried_match
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.currently_complete
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#currently_complete
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._parse
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.parses
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#parses
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.set_grammar
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#set_grammar
ZopeInterfaceFunction
Method
VISIBLE
Change the grammar used to parse texts.
-
nltk.parse.recursivedescent.SteppingRecursiveDescentParser._grammar
nltk.parse.recursivedescent.SteppingRecursiveDescentParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.recursivedescent.demo
nltk.parse.recursivedescent.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of the recursive descent parser.
-
nltk.parse.shiftreduce.ShiftReduceParser
nltk.parse.shiftreduce.ShiftReduceParser.html
ZopeInterfaceClass
Class
VISIBLE
A simple bottom-up CFG parser that uses two operations, "shift" and "reduce", to find a single parse for a text.
-
nltk.parse.shiftreduce.ShiftReduceParser.__init__
nltk.parse.shiftreduce.ShiftReduceParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new ShiftReduceParser, that uses grammar to parse texts.
-
nltk.parse.shiftreduce.ShiftReduceParser._grammar
nltk.parse.shiftreduce.ShiftReduceParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.shiftreduce.ShiftReduceParser._trace
nltk.parse.shiftreduce.ShiftReduceParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.shiftreduce.ShiftReduceParser.grammar
nltk.parse.shiftreduce.ShiftReduceParser.html#grammar
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.shiftreduce.ShiftReduceParser.parse
nltk.parse.shiftreduce.ShiftReduceParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.shiftreduce.ShiftReduceParser._shift
nltk.parse.shiftreduce.ShiftReduceParser.html#_shift
ZopeInterfaceFunction
Method
PRIVATE
Move a token from the beginning of remaining_text to the end of stack.
-
nltk.parse.shiftreduce.ShiftReduceParser._match_rhs
nltk.parse.shiftreduce.ShiftReduceParser.html#_match_rhs
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.parse.shiftreduce.ShiftReduceParser._reduce
nltk.parse.shiftreduce.ShiftReduceParser.html#_reduce
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.parse.shiftreduce.ShiftReduceParser.trace
nltk.parse.shiftreduce.ShiftReduceParser.html#trace
ZopeInterfaceFunction
Method
VISIBLE
Set the level of tracing output that should be generated when parsing a text.
-
nltk.parse.shiftreduce.ShiftReduceParser._trace_stack
nltk.parse.shiftreduce.ShiftReduceParser.html#_trace_stack
ZopeInterfaceFunction
Method
PRIVATE
Print trace output displaying the given stack and text.
-
nltk.parse.shiftreduce.ShiftReduceParser._trace_shift
nltk.parse.shiftreduce.ShiftReduceParser.html#_trace_shift
ZopeInterfaceFunction
Method
PRIVATE
Print trace output displaying that a token has been shifted.
-
nltk.parse.shiftreduce.ShiftReduceParser._trace_reduce
nltk.parse.shiftreduce.ShiftReduceParser.html#_trace_reduce
ZopeInterfaceFunction
Method
PRIVATE
Print trace output displaying that production was used to reduce stack.
-
nltk.parse.shiftreduce.ShiftReduceParser._check_grammar
nltk.parse.shiftreduce.ShiftReduceParser.html#_check_grammar
ZopeInterfaceFunction
Method
PRIVATE
Check to make sure that all of the CFG productions are potentially useful. If any productions can never be used, then print a warning.
-
nltk.parse.shiftreduce.SteppingShiftReduceParser
nltk.parse.shiftreduce.SteppingShiftReduceParser.html
ZopeInterfaceClass
Class
VISIBLE
A ShiftReduceParser that allows you to setp through the parsing process, performing a single operation at a time. It also allows you to change the parser's grammar midway through parsing a text.
-
nltk.parse.shiftreduce.SteppingShiftReduceParser._history
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#_history
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of (stack, remaining_text) pairs,
containing all of the previous states of the parser. This
history is used to implement the undo operation.
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.__init__
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new ShiftReduceParser, that uses grammar to parse texts.
-
nltk.parse.shiftreduce.SteppingShiftReduceParser._stack
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#_stack
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.shiftreduce.SteppingShiftReduceParser._remaining_text
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#_remaining_text
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.parse
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.stack
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#stack
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.remaining_text
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#remaining_text
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.initialize
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#initialize
ZopeInterfaceFunction
Method
VISIBLE
Start parsing a given text. This sets the parser's stack to [] and sets its remaining text to tokens.
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.step
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#step
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.shift
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#shift
ZopeInterfaceFunction
Method
VISIBLE
Move a token from the beginning of the remaining text to the end of the stack. If there are no more tokens in the remaining text, then do nothing.
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.reduce
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#reduce
ZopeInterfaceFunction
Method
VISIBLE
Use production to combine the rightmost stack elements into a single Tree. If production does not match the rightmost stack elements, then do nothing.
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.undo
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#undo
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.reducible_productions
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#reducible_productions
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.parses
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#parses
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.shiftreduce.SteppingShiftReduceParser.set_grammar
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#set_grammar
ZopeInterfaceFunction
Method
VISIBLE
Change the grammar used to parse texts.
-
nltk.parse.shiftreduce.SteppingShiftReduceParser._grammar
nltk.parse.shiftreduce.SteppingShiftReduceParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.shiftreduce.demo
nltk.parse.shiftreduce.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of the shift-reduce parser.
-
nltk.parse.util.load_parser
nltk.parse.util.html#load_parser
ZopeInterfaceFunction
Function
VISIBLE
Load a grammar from a file, and build a parser based on that grammar. The parser depends on the grammar format, and might also depend on properties of the grammar itself.
-
nltk.parse.util.taggedsent_to_conll
nltk.parse.util.html#taggedsent_to_conll
ZopeInterfaceFunction
Function
VISIBLE
A module to convert a single POS tagged sentence into CONLL format.
-
nltk.parse.util.taggedsents_to_conll
nltk.parse.util.html#taggedsents_to_conll
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.parse.util.TestGrammar
nltk.parse.util.TestGrammar.html
ZopeInterfaceClass
Class
VISIBLE
Unit tests for CFG.
-
nltk.parse.util.TestGrammar.__init__
nltk.parse.util.TestGrammar.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.util.TestGrammar.test_grammar
nltk.parse.util.TestGrammar.html#test_grammar
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.util.TestGrammar.cp
nltk.parse.util.TestGrammar.html#cp
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.util.TestGrammar.suite
nltk.parse.util.TestGrammar.html#suite
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.util.TestGrammar._accept
nltk.parse.util.TestGrammar.html#_accept
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.util.TestGrammar._reject
nltk.parse.util.TestGrammar.html#_reject
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.util.TestGrammar.run
nltk.parse.util.TestGrammar.html#run
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.viterbi.ViterbiParser
nltk.parse.viterbi.ViterbiParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.viterbi.ViterbiParser._grammar
nltk.parse.viterbi.ViterbiParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The grammar used to parse sentences.
-
nltk.parse.viterbi.ViterbiParser._trace
nltk.parse.viterbi.ViterbiParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The level of tracing output that should be generated
when parsing a text.
-
nltk.parse.viterbi.ViterbiParser.__init__
nltk.parse.viterbi.ViterbiParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new ViterbiParser parser, that uses grammar to parse texts.
-
nltk.parse.viterbi.ViterbiParser.grammar
nltk.parse.viterbi.ViterbiParser.html#grammar
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.viterbi.ViterbiParser.trace
nltk.parse.viterbi.ViterbiParser.html#trace
ZopeInterfaceFunction
Method
VISIBLE
Set the level of tracing output that should be generated when parsing a text.
-
nltk.parse.viterbi.ViterbiParser.parse
nltk.parse.viterbi.ViterbiParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.viterbi.ViterbiParser._add_constituents_spanning
nltk.parse.viterbi.ViterbiParser.html#_add_constituents_spanning
ZopeInterfaceFunction
Method
PRIVATE
Find any constituents that might cover span, and add them to the most likely constituents table.
-
nltk.parse.viterbi.ViterbiParser._find_instantiations
nltk.parse.viterbi.ViterbiParser.html#_find_instantiations
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.parse.viterbi.ViterbiParser._match_rhs
nltk.parse.viterbi.ViterbiParser.html#_match_rhs
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.parse.viterbi.ViterbiParser._trace_production
nltk.parse.viterbi.ViterbiParser.html#_trace_production
ZopeInterfaceFunction
Method
PRIVATE
Print trace output indicating that a given production has been applied at a given location.
-
nltk.parse.viterbi.ViterbiParser._trace_lexical_insertion
nltk.parse.viterbi.ViterbiParser.html#_trace_lexical_insertion
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.viterbi.ViterbiParser.__repr__
nltk.parse.viterbi.ViterbiParser.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.viterbi.demo
nltk.parse.viterbi.html#demo
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.parse.dependencygraph.DependencyGraph
nltk.parse.dependencygraph.DependencyGraph.html
ZopeInterfaceClass
Class
VISIBLE
A container for the nodes and labelled edges of a dependency structure.
-
nltk.parse.dependencygraph.DependencyGraph.__init__
nltk.parse.dependencygraph.DependencyGraph.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Dependency graph.
-
nltk.parse.dependencygraph.DependencyGraph.nodes
nltk.parse.dependencygraph.DependencyGraph.html#nodes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph.root
nltk.parse.dependencygraph.DependencyGraph.html#root
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph.remove_by_address
nltk.parse.dependencygraph.DependencyGraph.html#remove_by_address
ZopeInterfaceFunction
Method
VISIBLE
Removes the node with the given address. References to this node in others will still exist.
-
nltk.parse.dependencygraph.DependencyGraph.redirect_arcs
nltk.parse.dependencygraph.DependencyGraph.html#redirect_arcs
ZopeInterfaceFunction
Method
VISIBLE
Redirects arcs to any of the nodes in the originals list to the redirect node address.
-
nltk.parse.dependencygraph.DependencyGraph.add_arc
nltk.parse.dependencygraph.DependencyGraph.html#add_arc
ZopeInterfaceFunction
Method
VISIBLE
Adds an arc from the node specified by head_address to the node specified by the mod address.
-
nltk.parse.dependencygraph.DependencyGraph.connect_graph
nltk.parse.dependencygraph.DependencyGraph.html#connect_graph
ZopeInterfaceFunction
Method
VISIBLE
Fully connects all non-root nodes. All nodes are set to be dependents of the root node.
-
nltk.parse.dependencygraph.DependencyGraph.get_by_address
nltk.parse.dependencygraph.DependencyGraph.html#get_by_address
ZopeInterfaceFunction
Method
VISIBLE
Return the node with the given address.
-
nltk.parse.dependencygraph.DependencyGraph.contains_address
nltk.parse.dependencygraph.DependencyGraph.html#contains_address
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the graph contains a node with the given node address, false otherwise.
-
nltk.parse.dependencygraph.DependencyGraph.to_dot
nltk.parse.dependencygraph.DependencyGraph.html#to_dot
ZopeInterfaceFunction
Method
VISIBLE
Return a dot representation suitable for using with Graphviz.
-
nltk.parse.dependencygraph.DependencyGraph._repr_svg_
nltk.parse.dependencygraph.DependencyGraph.html#_repr_svg_
ZopeInterfaceFunction
Method
PRIVATE
Show SVG representation of the transducer (IPython magic).
-
nltk.parse.dependencygraph.DependencyGraph.__str__
nltk.parse.dependencygraph.DependencyGraph.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph.__repr__
nltk.parse.dependencygraph.DependencyGraph.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph.load
nltk.parse.dependencygraph.DependencyGraph.html#load
ZopeInterfaceFunction
Static Method
VISIBLE
No summary
-
nltk.parse.dependencygraph.DependencyGraph.left_children
nltk.parse.dependencygraph.DependencyGraph.html#left_children
ZopeInterfaceFunction
Method
VISIBLE
Returns the number of left children under the node specified by the given address.
-
nltk.parse.dependencygraph.DependencyGraph.right_children
nltk.parse.dependencygraph.DependencyGraph.html#right_children
ZopeInterfaceFunction
Method
VISIBLE
Returns the number of right children under the node specified by the given address.
-
nltk.parse.dependencygraph.DependencyGraph.add_node
nltk.parse.dependencygraph.DependencyGraph.html#add_node
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph._parse
nltk.parse.dependencygraph.DependencyGraph.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
Parse a sentence.
-
nltk.parse.dependencygraph.DependencyGraph.top_relation_label
nltk.parse.dependencygraph.DependencyGraph.html#top_relation_label
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph._word
nltk.parse.dependencygraph.DependencyGraph.html#_word
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph._tree
nltk.parse.dependencygraph.DependencyGraph.html#_tree
ZopeInterfaceFunction
Method
PRIVATE
Turn dependency graphs into NLTK trees.
-
nltk.parse.dependencygraph.DependencyGraph.tree
nltk.parse.dependencygraph.DependencyGraph.html#tree
ZopeInterfaceFunction
Method
VISIBLE
Starting with the root node, build a dependency tree using the NLTK Tree constructor. Dependency labels are omitted.
-
nltk.parse.dependencygraph.DependencyGraph.triples
nltk.parse.dependencygraph.DependencyGraph.html#triples
ZopeInterfaceFunction
Method
VISIBLE
Extract dependency triples of the form: ((head word, head tag), rel, (dep word, dep tag))
-
nltk.parse.dependencygraph.DependencyGraph._hd
nltk.parse.dependencygraph.DependencyGraph.html#_hd
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph._rel
nltk.parse.dependencygraph.DependencyGraph.html#_rel
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph.contains_cycle
nltk.parse.dependencygraph.DependencyGraph.html#contains_cycle
ZopeInterfaceFunction
Method
VISIBLE
Check whether there are cycles.
-
nltk.parse.dependencygraph.DependencyGraph.get_cycle_path
nltk.parse.dependencygraph.DependencyGraph.html#get_cycle_path
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraph.to_conll
nltk.parse.dependencygraph.DependencyGraph.html#to_conll
ZopeInterfaceFunction
Method
VISIBLE
The dependency graph in CoNLL format.
-
nltk.parse.dependencygraph.DependencyGraph.nx_graph
nltk.parse.dependencygraph.DependencyGraph.html#nx_graph
ZopeInterfaceFunction
Method
VISIBLE
Convert the data in a nodelist into a networkx labeled directed graph.
-
nltk.parse.dependencygraph.DependencyGraph.nx_labels
nltk.parse.dependencygraph.DependencyGraph.html#nx_labels
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.DependencyGraphError
nltk.parse.dependencygraph.DependencyGraphError.html
ZopeInterfaceClass
Class
VISIBLE
Dependency graph exception.
-
nltk.parse.dependencygraph.demo
nltk.parse.dependencygraph.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.malt_demo
nltk.parse.dependencygraph.html#malt_demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of the result of reading a dependency version of the first sentence of the Penn Treebank.
-
nltk.parse.dependencygraph.conll_demo
nltk.parse.dependencygraph.html#conll_demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of how to read a string representation of a CoNLL format dependency tree.
-
nltk.parse.dependencygraph.conll_file_demo
nltk.parse.dependencygraph.html#conll_file_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.cycle_finding_demo
nltk.parse.dependencygraph.html#cycle_finding_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.treebank_data
nltk.parse.dependencygraph.html#treebank_data
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.conll_data1
nltk.parse.dependencygraph.html#conll_data1
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.dependencygraph.conll_data2
nltk.parse.dependencygraph.html#conll_data2
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan
nltk.parse.projectivedependencyparser.DependencySpan.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.projectivedependencyparser.DependencySpan.__init__
nltk.parse.projectivedependencyparser.DependencySpan.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan._start_index
nltk.parse.projectivedependencyparser.DependencySpan.html#_start_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan._end_index
nltk.parse.projectivedependencyparser.DependencySpan.html#_end_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan._head_index
nltk.parse.projectivedependencyparser.DependencySpan.html#_head_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan._arcs
nltk.parse.projectivedependencyparser.DependencySpan.html#_arcs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan._tags
nltk.parse.projectivedependencyparser.DependencySpan.html#_tags
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan._comparison_key
nltk.parse.projectivedependencyparser.DependencySpan.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan._hash
nltk.parse.projectivedependencyparser.DependencySpan.html#_hash
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan.head_index
nltk.parse.projectivedependencyparser.DependencySpan.html#head_index
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.projectivedependencyparser.DependencySpan.__repr__
nltk.parse.projectivedependencyparser.DependencySpan.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.projectivedependencyparser.DependencySpan.__str__
nltk.parse.projectivedependencyparser.DependencySpan.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.projectivedependencyparser.DependencySpan.__eq__
nltk.parse.projectivedependencyparser.DependencySpan.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan.__ne__
nltk.parse.projectivedependencyparser.DependencySpan.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan.__lt__
nltk.parse.projectivedependencyparser.DependencySpan.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.projectivedependencyparser.DependencySpan.__hash__
nltk.parse.projectivedependencyparser.DependencySpan.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.projectivedependencyparser.ChartCell
nltk.parse.projectivedependencyparser.ChartCell.html
ZopeInterfaceClass
Class
VISIBLE
A cell from the parse chart formed when performing the CYK algorithm. Each cell keeps track of its x and y coordinates (though this will probably be discarded), and a list of spans serving as the cell's entries.
-
nltk.parse.projectivedependencyparser.ChartCell.__init__
nltk.parse.projectivedependencyparser.ChartCell.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.projectivedependencyparser.ChartCell._x
nltk.parse.projectivedependencyparser.ChartCell.html#_x
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.ChartCell._y
nltk.parse.projectivedependencyparser.ChartCell.html#_y
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.ChartCell._entries
nltk.parse.projectivedependencyparser.ChartCell.html#_entries
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.ChartCell.add
nltk.parse.projectivedependencyparser.ChartCell.html#add
ZopeInterfaceFunction
Method
VISIBLE
Appends the given span to the list of spans representing the chart cell's entries.
-
nltk.parse.projectivedependencyparser.ChartCell.__str__
nltk.parse.projectivedependencyparser.ChartCell.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.projectivedependencyparser.ChartCell.__repr__
nltk.parse.projectivedependencyparser.ChartCell.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.__init__
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new ProjectiveDependencyParser, from a word-to-word dependency grammar DependencyGrammar.
-
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser._grammar
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.parse
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Performs a projective dependency parse on the list of tokens using a chart-based, span-concatenation algorithm similar to Eisner (1996).
-
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser._tokens
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.html#_tokens
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.concatenate
nltk.parse.projectivedependencyparser.ProjectiveDependencyParser.html#concatenate
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.html
ZopeInterfaceClass
Class
VISIBLE
A probabilistic, projective dependency parser.
-
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.__init__
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new probabilistic dependency parser. No additional operations are necessary.
-
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.parse
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser._tokens
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.html#_tokens
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.concatenate
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.html#concatenate
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.train
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser._grammar
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.compute_prob
nltk.parse.projectivedependencyparser.ProbabilisticProjectiveDependencyParser.html#compute_prob
ZopeInterfaceFunction
Method
VISIBLE
Computes the probability of a dependency graph based on the parser's probability model (defined by the parser's statistical dependency grammar).
-
nltk.parse.projectivedependencyparser.demo
nltk.parse.projectivedependencyparser.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.projectivedependencyparser.projective_rule_parse_demo
nltk.parse.projectivedependencyparser.html#projective_rule_parse_demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration showing the creation and use of a DependencyGrammar to perform a projective dependency parse.
-
nltk.parse.projectivedependencyparser.arity_parse_demo
nltk.parse.projectivedependencyparser.html#arity_parse_demo
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.parse.projectivedependencyparser.projective_prob_parse_demo
nltk.parse.projectivedependencyparser.html#projective_prob_parse_demo
ZopeInterfaceFunction
Function
VISIBLE
A demo showing the training and use of a projective dependency parser.
-
nltk.parse.nonprojectivedependencyparser.logger
nltk.parse.nonprojectivedependencyparser.html#logger
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.DependencyScorerI
nltk.parse.nonprojectivedependencyparser.DependencyScorerI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.DependencyScorerI.__init__
nltk.parse.nonprojectivedependencyparser.DependencyScorerI.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.DependencyScorerI.train
nltk.parse.nonprojectivedependencyparser.DependencyScorerI.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.DependencyScorerI.score
nltk.parse.nonprojectivedependencyparser.DependencyScorerI.html#score
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.__init__
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.train
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.classifier
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.html#classifier
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.score
nltk.parse.nonprojectivedependencyparser.NaiveBayesDependencyScorer.html#score
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.DemoScorer
nltk.parse.nonprojectivedependencyparser.DemoScorer.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.DemoScorer.train
nltk.parse.nonprojectivedependencyparser.DemoScorer.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.DemoScorer.score
nltk.parse.nonprojectivedependencyparser.DemoScorer.html#score
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html
ZopeInterfaceClass
Class
VISIBLE
A probabilistic non-projective dependency parser.
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.__init__
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates a new non-projective parser.
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.train
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser._scorer
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#_scorer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.initialize_edge_scores
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#initialize_edge_scores
ZopeInterfaceFunction
Method
VISIBLE
Assigns a score to every edge in the DependencyGraph graph. These scores are generated via the parser's scorer which was assigned during the training process.
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.scores
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#scores
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.collapse_nodes
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#collapse_nodes
ZopeInterfaceFunction
Method
VISIBLE
Takes a list of nodes that have been identified to belong to a cycle, and collapses them into on larger node. The arcs of all nodes in the graph must be updated to account for this.
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.update_edge_scores
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#update_edge_scores
ZopeInterfaceFunction
Method
VISIBLE
Updates the edge scores to reflect a collapse operation into new_node.
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.compute_original_indexes
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#compute_original_indexes
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.compute_max_subtract_score
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#compute_max_subtract_score
ZopeInterfaceFunction
Method
VISIBLE
When updating scores the score of the highest-weighted incoming arc is subtracted upon collapse. This returns the correct amount to subtract from that edge.
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.best_incoming_arc
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#best_incoming_arc
ZopeInterfaceFunction
Method
VISIBLE
Returns the source of the best incoming arc to the node with address: node_index
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.original_best_arc
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#original_best_arc
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.parse
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.inner_nodes
nltk.parse.nonprojectivedependencyparser.ProbabilisticNonprojectiveParser.html#inner_nodes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser.__init__
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates a new NonprojectiveDependencyParser.
-
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser._grammar
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser.parse
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser._graph
nltk.parse.nonprojectivedependencyparser.NonprojectiveDependencyParser.html#_graph
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.demo
nltk.parse.nonprojectivedependencyparser.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.hall_demo
nltk.parse.nonprojectivedependencyparser.html#hall_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.nonprojective_conll_parse_demo
nltk.parse.nonprojectivedependencyparser.html#nonprojective_conll_parse_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.nonprojectivedependencyparser.rule_based_demo
nltk.parse.nonprojectivedependencyparser.html#rule_based_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.malt.malt_regex_tagger
nltk.parse.malt.html#malt_regex_tagger
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.malt.find_maltparser
nltk.parse.malt.html#find_maltparser
ZopeInterfaceFunction
Function
VISIBLE
A module to find MaltParser .jar file and its dependencies.
-
nltk.parse.malt.find_malt_model
nltk.parse.malt.html#find_malt_model
ZopeInterfaceFunction
Function
VISIBLE
A module to find pre-trained MaltParser model.
-
nltk.parse.malt.MaltParser
nltk.parse.malt.MaltParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.parse.malt.MaltParser.__init__
nltk.parse.malt.MaltParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
An interface for parsing with the Malt Parser.
-
nltk.parse.malt.MaltParser.malt_jars
nltk.parse.malt.MaltParser.html#malt_jars
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.malt.MaltParser.additional_java_args
nltk.parse.malt.MaltParser.html#additional_java_args
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.malt.MaltParser.model
nltk.parse.malt.MaltParser.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.malt.MaltParser._trained
nltk.parse.malt.MaltParser.html#_trained
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.malt.MaltParser.working_dir
nltk.parse.malt.MaltParser.html#working_dir
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.malt.MaltParser.tagger
nltk.parse.malt.MaltParser.html#tagger
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.malt.MaltParser.parse_tagged_sents
nltk.parse.malt.MaltParser.html#parse_tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Use MaltParser to parse multiple POS tagged sentences. Takes multiple sentences where each sentence is a list of (word, tag) tuples. The sentences must have already been tokenized and tagged.
-
nltk.parse.malt.MaltParser.parse_sents
nltk.parse.malt.MaltParser.html#parse_sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.malt.MaltParser.generate_malt_command
nltk.parse.malt.MaltParser.html#generate_malt_command
ZopeInterfaceFunction
Method
VISIBLE
This function generates the maltparser command use at the terminal.
-
nltk.parse.malt.MaltParser._execute
nltk.parse.malt.MaltParser.html#_execute
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.parse.malt.MaltParser.train
nltk.parse.malt.MaltParser.html#train
ZopeInterfaceFunction
Method
VISIBLE
Train MaltParser from a list of DependencyGraph objects
-
nltk.parse.malt.MaltParser.train_from_file
nltk.parse.malt.MaltParser.html#train_from_file
ZopeInterfaceFunction
Method
VISIBLE
Train MaltParser from a file :param conll_file: str for the filename of the training input data :type conll_file: str
-
nltk.parse.evaluate.DependencyEvaluator
nltk.parse.evaluate.DependencyEvaluator.html
ZopeInterfaceClass
Class
VISIBLE
Class for measuring labelled and unlabelled attachment score for dependency parsing. Note that the evaluation ignores punctuation.
-
nltk.parse.evaluate.DependencyEvaluator.__init__
nltk.parse.evaluate.DependencyEvaluator.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.evaluate.DependencyEvaluator._parsed_sents
nltk.parse.evaluate.DependencyEvaluator.html#_parsed_sents
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.evaluate.DependencyEvaluator._gold_sents
nltk.parse.evaluate.DependencyEvaluator.html#_gold_sents
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.evaluate.DependencyEvaluator._remove_punct
nltk.parse.evaluate.DependencyEvaluator.html#_remove_punct
ZopeInterfaceFunction
Method
PRIVATE
Function to remove punctuation from Unicode string. :param input: the input string :return: Unicode string after remove all punctuation
-
nltk.parse.evaluate.DependencyEvaluator.eval
nltk.parse.evaluate.DependencyEvaluator.html#eval
ZopeInterfaceFunction
Method
VISIBLE
Return the Labeled Attachment Score (LAS) and Unlabeled Attachment Score (UAS)
-
nltk.parse.transitionparser.Configuration
nltk.parse.transitionparser.Configuration.html
ZopeInterfaceClass
Class
VISIBLE
Class for holding configuration which is the partial analysis of the input sentence. The transition based parser aims at finding set of operators that transfer the initial configuration to the terminal configuration.
-
nltk.parse.transitionparser.Configuration.__init__
nltk.parse.transitionparser.Configuration.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.transitionparser.Configuration.stack
nltk.parse.transitionparser.Configuration.html#stack
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.Configuration.buffer
nltk.parse.transitionparser.Configuration.html#buffer
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.Configuration.arcs
nltk.parse.transitionparser.Configuration.html#arcs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.Configuration._tokens
nltk.parse.transitionparser.Configuration.html#_tokens
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.transitionparser.Configuration._max_address
nltk.parse.transitionparser.Configuration.html#_max_address
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.transitionparser.Configuration.__str__
nltk.parse.transitionparser.Configuration.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.transitionparser.Configuration._check_informative
nltk.parse.transitionparser.Configuration.html#_check_informative
ZopeInterfaceFunction
Method
PRIVATE
Check whether a feature is informative The flag control whether "_" is informative or not
-
nltk.parse.transitionparser.Transition
nltk.parse.transitionparser.Transition.html
ZopeInterfaceClass
Class
VISIBLE
This class defines a set of transition which is applied to a configuration to get another configuration Note that for different parsing algorithm, the transition is different.
-
nltk.parse.transitionparser.Transition.LEFT_ARC
nltk.parse.transitionparser.Transition.html#LEFT_ARC
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.Transition.RIGHT_ARC
nltk.parse.transitionparser.Transition.html#RIGHT_ARC
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.Transition.SHIFT
nltk.parse.transitionparser.Transition.html#SHIFT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.Transition.REDUCE
nltk.parse.transitionparser.Transition.html#REDUCE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.Transition.__init__
nltk.parse.transitionparser.Transition.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.transitionparser.Transition._algo
nltk.parse.transitionparser.Transition.html#_algo
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.transitionparser.Transition.left_arc
nltk.parse.transitionparser.Transition.html#left_arc
ZopeInterfaceFunction
Method
VISIBLE
Note that the algorithm for left-arc is quite similar except for precondition for both arc-standard and arc-eager :param configuration: is the current configuration :return : A new configuration or -1 if the pre-condition is not satisfied
-
nltk.parse.transitionparser.Transition.right_arc
nltk.parse.transitionparser.Transition.html#right_arc
ZopeInterfaceFunction
Method
VISIBLE
Note that the algorithm for right-arc is DIFFERENT for arc-standard and arc-eager :param configuration: is the current configuration :return : A new configuration or -1 if the pre-condition is not satisfied
-
nltk.parse.transitionparser.Transition.reduce
nltk.parse.transitionparser.Transition.html#reduce
ZopeInterfaceFunction
Method
VISIBLE
Note that the algorithm for reduce is only available for arc-eager :param configuration: is the current configuration :return : A new configuration or -1 if the pre-condition is not satisfied
-
nltk.parse.transitionparser.Transition.shift
nltk.parse.transitionparser.Transition.html#shift
ZopeInterfaceFunction
Method
VISIBLE
Note that the algorithm for shift is the SAME for arc-standard and arc-eager :param configuration: is the current configuration :return : A new configuration or -1 if the pre-condition is not satisfied
-
nltk.parse.transitionparser.TransitionParser
nltk.parse.transitionparser.TransitionParser.html
ZopeInterfaceClass
Class
VISIBLE
Class for transition based parser. Implement 2 algorithms which are "arc-standard" and "arc-eager"
-
nltk.parse.transitionparser.TransitionParser.ARC_STANDARD
nltk.parse.transitionparser.TransitionParser.html#ARC_STANDARD
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.TransitionParser.ARC_EAGER
nltk.parse.transitionparser.TransitionParser.html#ARC_EAGER
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.transitionparser.TransitionParser.__init__
nltk.parse.transitionparser.TransitionParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.parse.transitionparser.TransitionParser._algorithm
nltk.parse.transitionparser.TransitionParser.html#_algorithm
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.transitionparser.TransitionParser._dictionary
nltk.parse.transitionparser.TransitionParser.html#_dictionary
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.transitionparser.TransitionParser._transition
nltk.parse.transitionparser.TransitionParser.html#_transition
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.transitionparser.TransitionParser._match_transition
nltk.parse.transitionparser.TransitionParser.html#_match_transition
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.transitionparser.TransitionParser._get_dep_relation
nltk.parse.transitionparser.TransitionParser.html#_get_dep_relation
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.transitionparser.TransitionParser._convert_to_binary_features
nltk.parse.transitionparser.TransitionParser.html#_convert_to_binary_features
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.parse.transitionparser.TransitionParser._is_projective
nltk.parse.transitionparser.TransitionParser.html#_is_projective
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.transitionparser.TransitionParser._write_to_file
nltk.parse.transitionparser.TransitionParser.html#_write_to_file
ZopeInterfaceFunction
Method
PRIVATE
write the binary features to input file and update the transition dictionary
-
nltk.parse.transitionparser.TransitionParser._create_training_examples_arc_std
nltk.parse.transitionparser.TransitionParser.html#_create_training_examples_arc_std
ZopeInterfaceFunction
Method
PRIVATE
Create the training example in the libsvm format and write it to the input_file. Reference : Page 32, Chapter 3. Dependency Parsing by Sandra Kubler, Ryan McDonal and Joakim Nivre (2009)
-
nltk.parse.transitionparser.TransitionParser._create_training_examples_arc_eager
nltk.parse.transitionparser.TransitionParser.html#_create_training_examples_arc_eager
ZopeInterfaceFunction
Method
PRIVATE
Create the training example in the libsvm format and write it to the input_file. Reference : 'A Dynamic Oracle for Arc-Eager Dependency Parsing' by Joav Goldberg and Joakim Nivre
-
nltk.parse.transitionparser.TransitionParser.train
nltk.parse.transitionparser.TransitionParser.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.transitionparser.TransitionParser.parse
nltk.parse.transitionparser.TransitionParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.transitionparser.demo
nltk.parse.transitionparser.html#demo
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.parse.bllip._ensure_bllip_import_or_error 0
nltk.parse.bllip.html#_ensure_bllip_import_or_error%200
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.parse.bllip._ensure_bllip_import_or_error
nltk.parse.bllip.html#_ensure_bllip_import_or_error
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.parse.bllip._ensure_ascii
nltk.parse.bllip.html#_ensure_ascii
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.parse.bllip._scored_parse_to_nltk_tree
nltk.parse.bllip.html#_scored_parse_to_nltk_tree
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.parse.bllip.BllipParser
nltk.parse.bllip.BllipParser.html
ZopeInterfaceClass
Class
VISIBLE
Interface for parsing with BLLIP Parser. BllipParser objects can be constructed with the BllipParser.from_unified_model_dir class method or manually using the BllipParser constructor.
-
nltk.parse.bllip.BllipParser.__init__
nltk.parse.bllip.BllipParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Load a BLLIP Parser model from scratch. You'll typically want to use the from_unified_model_dir() class method to construct this object.
-
nltk.parse.bllip.BllipParser.rrp
nltk.parse.bllip.BllipParser.html#rrp
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.bllip.BllipParser.parse
nltk.parse.bllip.BllipParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Use BLLIP Parser to parse a sentence. Takes a sentence as a list of words; it will be automatically tagged with this BLLIP Parser instance's tagger.
-
nltk.parse.bllip.BllipParser.tagged_parse
nltk.parse.bllip.BllipParser.html#tagged_parse
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.bllip.BllipParser.from_unified_model_dir
nltk.parse.bllip.BllipParser.html#from_unified_model_dir
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.parse.bllip.demo
nltk.parse.bllip.html#demo
ZopeInterfaceFunction
Function
VISIBLE
This assumes the Python module bllipparser is installed.
-
nltk.tag.util.str2tuple
nltk.tag.util.html#str2tuple
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.tag.util.tuple2str
nltk.tag.util.html#tuple2str
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.tag.util.untag
nltk.tag.util.html#untag
ZopeInterfaceFunction
Function
VISIBLE
Given a tagged sentence, return an untagged version of that sentence. I.e., return a list containing the first element of each tuple in tagged_sentence.
-
nltk.tag.api.TaggerI
nltk.tag.api.TaggerI.html
ZopeInterfaceClass
Class
VISIBLE
A processing interface for assigning a tag to each token in a list. Tags are case sensitive strings that identify some property of each token, such as its part of speech or its sense.
-
nltk.tag.api.TaggerI.tag
nltk.tag.api.TaggerI.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Determine the most appropriate tag sequence for the given token sequence, and return a corresponding list of tagged tokens. A tagged token is encoded as a tuple (token, tag).
-
nltk.tag.api.TaggerI.tag_sents
nltk.tag.api.TaggerI.html#tag_sents
ZopeInterfaceFunction
Method
VISIBLE
Apply self.tag() to each element of sentences. I.e.:
-
nltk.tag.api.TaggerI.evaluate
nltk.tag.api.TaggerI.html#evaluate
ZopeInterfaceFunction
Method
VISIBLE
Score the accuracy of the tagger against the gold standard. Strip the tags from the gold standard text, retag it using the tagger, then compute the accuracy score.
-
nltk.tag.api.TaggerI._check_params
nltk.tag.api.TaggerI.html#_check_params
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.api.FeaturesetTaggerI
nltk.tag.api.FeaturesetTaggerI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tokenize.util.string_span_tokenize
nltk.tokenize.util.html#string_span_tokenize
ZopeInterfaceFunction
Function
VISIBLE
Return the offsets of the tokens in s, as a sequence of (start, end) tuples, by splitting the string at each occurrence of sep.
-
nltk.tokenize.util.regexp_span_tokenize
nltk.tokenize.util.html#regexp_span_tokenize
ZopeInterfaceFunction
Function
VISIBLE
Return the offsets of the tokens in s, as a sequence of (start, end) tuples, by splitting the string at each successive match of regexp.
-
nltk.tokenize.util.spans_to_relative
nltk.tokenize.util.html#spans_to_relative
ZopeInterfaceFunction
Function
VISIBLE
Return a sequence of relative spans, given a sequence of spans.
-
nltk.tokenize.util.CJKChars
nltk.tokenize.util.CJKChars.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.tokenize.util.CJKChars.Hangul_Jamo
nltk.tokenize.util.CJKChars.html#Hangul_Jamo
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.CJKChars.CJK_Radicals
nltk.tokenize.util.CJKChars.html#CJK_Radicals
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.CJKChars.Phags_Pa
nltk.tokenize.util.CJKChars.html#Phags_Pa
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.CJKChars.Hangul_Syllables
nltk.tokenize.util.CJKChars.html#Hangul_Syllables
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.CJKChars.CJK_Compatibility_Ideographs
nltk.tokenize.util.CJKChars.html#CJK_Compatibility_Ideographs
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.CJKChars.CJK_Compatibility_Forms
nltk.tokenize.util.CJKChars.html#CJK_Compatibility_Forms
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.CJKChars.Katakana_Hangul_Halfwidth
nltk.tokenize.util.CJKChars.html#Katakana_Hangul_Halfwidth
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.CJKChars.Supplementary_Ideographic_Plane
nltk.tokenize.util.CJKChars.html#Supplementary_Ideographic_Plane
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.CJKChars.ranges
nltk.tokenize.util.CJKChars.html#ranges
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.util.is_cjk
nltk.tokenize.util.html#is_cjk
ZopeInterfaceFunction
Function
VISIBLE
Python port of Moses' code to check for CJK character.
-
nltk.tokenize.util.xml_escape
nltk.tokenize.util.html#xml_escape
ZopeInterfaceFunction
Function
VISIBLE
This function transforms the input text into an "escaped" version suitable for well-formed XML formatting.
-
nltk.tokenize.util.xml_unescape
nltk.tokenize.util.html#xml_unescape
ZopeInterfaceFunction
Function
VISIBLE
This function transforms the "escaped" version suitable for well-formed XML formatting into humanly-readable string.
-
nltk.tokenize.util.align_tokens
nltk.tokenize.util.html#align_tokens
ZopeInterfaceFunction
Function
VISIBLE
This module attempt to find the offsets of the tokens in s, as a sequence of (start, end) tuples, given the tokens and also the source string.
-
nltk.tokenize.api.TokenizerI
nltk.tokenize.api.TokenizerI.html
ZopeInterfaceClass
Class
VISIBLE
A processing interface for tokenizing a string. Subclasses must define tokenize() or tokenize_sents() (or both).
-
nltk.tokenize.api.TokenizerI.tokenize
nltk.tokenize.api.TokenizerI.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.api.TokenizerI.span_tokenize
nltk.tokenize.api.TokenizerI.html#span_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Identify the tokens using integer offsets (start_i, end_i), where s[start_i:end_i] is the corresponding token.
-
nltk.tokenize.api.TokenizerI.tokenize_sents
nltk.tokenize.api.TokenizerI.html#tokenize_sents
ZopeInterfaceFunction
Method
VISIBLE
Apply self.tokenize() to each element of strings. I.e.:
-
nltk.tokenize.api.TokenizerI.span_tokenize_sents
nltk.tokenize.api.TokenizerI.html#span_tokenize_sents
ZopeInterfaceFunction
Method
VISIBLE
Apply self.span_tokenize() to each element of strings. I.e.:
-
nltk.tokenize.api.StringTokenizer
nltk.tokenize.api.StringTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
A tokenizer that divides a string into substrings by splitting on the specified string (defined in subclasses).
-
nltk.tokenize.api.StringTokenizer._string
nltk.tokenize.api.StringTokenizer.html#_string
ZopeInterfaceAttribute
Property
PRIVATE
Undocumented
-
nltk.tokenize.api.StringTokenizer.tokenize
nltk.tokenize.api.StringTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.api.StringTokenizer.span_tokenize
nltk.tokenize.api.StringTokenizer.html#span_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Identify the tokens using integer offsets (start_i, end_i), where s[start_i:end_i] is the corresponding token.
-
nltk.parse.corenlp._stanford_url
nltk.parse.corenlp.html#_stanford_url
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.parse.corenlp.CoreNLPServerError
nltk.parse.corenlp.CoreNLPServerError.html
ZopeInterfaceClass
Class
VISIBLE
Exceptions associated with the Core NLP server.
-
nltk.parse.corenlp.try_port
nltk.parse.corenlp.html#try_port
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer
nltk.parse.corenlp.CoreNLPServer.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/6 instance variable, 0/2 class variable, 1/5 method documented
-
nltk.parse.corenlp.CoreNLPServer._MODEL_JAR_PATTERN
nltk.parse.corenlp.CoreNLPServer.html#_MODEL_JAR_PATTERN
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer._JAR
nltk.parse.corenlp.CoreNLPServer.html#_JAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.__init__
nltk.parse.corenlp.CoreNLPServer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.url
nltk.parse.corenlp.CoreNLPServer.html#url
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.verbose
nltk.parse.corenlp.CoreNLPServer.html#verbose
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer._classpath
nltk.parse.corenlp.CoreNLPServer.html#_classpath
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.corenlp_options
nltk.parse.corenlp.CoreNLPServer.html#corenlp_options
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.java_options
nltk.parse.corenlp.CoreNLPServer.html#java_options
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.start
nltk.parse.corenlp.CoreNLPServer.html#start
ZopeInterfaceFunction
Method
VISIBLE
Starts the CoreNLP server
-
nltk.parse.corenlp.CoreNLPServer.popen
nltk.parse.corenlp.CoreNLPServer.html#popen
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.stop
nltk.parse.corenlp.CoreNLPServer.html#stop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.__enter__
nltk.parse.corenlp.CoreNLPServer.html#__enter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPServer.__exit__
nltk.parse.corenlp.CoreNLPServer.html#__exit__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.corenlp.GenericCoreNLPParser
nltk.parse.corenlp.GenericCoreNLPParser.html
ZopeInterfaceClass
Class
VISIBLE
Interface to the CoreNLP Parser.
-
nltk.parse.corenlp.GenericCoreNLPParser.__init__
nltk.parse.corenlp.GenericCoreNLPParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.corenlp.GenericCoreNLPParser.url
nltk.parse.corenlp.GenericCoreNLPParser.html#url
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.GenericCoreNLPParser.encoding
nltk.parse.corenlp.GenericCoreNLPParser.html#encoding
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.GenericCoreNLPParser.tagtype
nltk.parse.corenlp.GenericCoreNLPParser.html#tagtype
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.GenericCoreNLPParser.session
nltk.parse.corenlp.GenericCoreNLPParser.html#session
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.GenericCoreNLPParser.parse_sents
nltk.parse.corenlp.GenericCoreNLPParser.html#parse_sents
ZopeInterfaceFunction
Method
VISIBLE
Parse multiple sentences.
-
nltk.parse.corenlp.GenericCoreNLPParser.raw_parse
nltk.parse.corenlp.GenericCoreNLPParser.html#raw_parse
ZopeInterfaceFunction
Method
VISIBLE
Parse a sentence.
-
nltk.parse.corenlp.GenericCoreNLPParser.api_call
nltk.parse.corenlp.GenericCoreNLPParser.html#api_call
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.corenlp.GenericCoreNLPParser.raw_parse_sents
nltk.parse.corenlp.GenericCoreNLPParser.html#raw_parse_sents
ZopeInterfaceFunction
Method
VISIBLE
Parse multiple sentences.
-
nltk.parse.corenlp.GenericCoreNLPParser.parse_text
nltk.parse.corenlp.GenericCoreNLPParser.html#parse_text
ZopeInterfaceFunction
Method
VISIBLE
Parse a piece of text.
-
nltk.parse.corenlp.GenericCoreNLPParser.tokenize
nltk.parse.corenlp.GenericCoreNLPParser.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Tokenize a string of text.
-
nltk.parse.corenlp.GenericCoreNLPParser.tag_sents
nltk.parse.corenlp.GenericCoreNLPParser.html#tag_sents
ZopeInterfaceFunction
Method
VISIBLE
Tag multiple sentences.
-
nltk.parse.corenlp.GenericCoreNLPParser.tag
nltk.parse.corenlp.GenericCoreNLPParser.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Tag a list of tokens.
-
nltk.parse.corenlp.GenericCoreNLPParser.raw_tag_sents
nltk.parse.corenlp.GenericCoreNLPParser.html#raw_tag_sents
ZopeInterfaceFunction
Method
VISIBLE
Tag multiple sentences.
-
nltk.parse.corenlp.CoreNLPParser
nltk.parse.corenlp.CoreNLPParser.html
ZopeInterfaceClass
Class
VISIBLE
>>> parser = CoreNLPParser(url='http://localhost:9000')
-
nltk.parse.corenlp.CoreNLPParser._OUTPUT_FORMAT
nltk.parse.corenlp.CoreNLPParser.html#_OUTPUT_FORMAT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.corenlp.CoreNLPParser.parser_annotator
nltk.parse.corenlp.CoreNLPParser.html#parser_annotator
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPParser.make_tree
nltk.parse.corenlp.CoreNLPParser.html#make_tree
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPDependencyParser
nltk.parse.corenlp.CoreNLPDependencyParser.html
ZopeInterfaceClass
Class
VISIBLE
Dependency parser.
-
nltk.parse.corenlp.CoreNLPDependencyParser._OUTPUT_FORMAT
nltk.parse.corenlp.CoreNLPDependencyParser.html#_OUTPUT_FORMAT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.corenlp.CoreNLPDependencyParser.parser_annotator
nltk.parse.corenlp.CoreNLPDependencyParser.html#parser_annotator
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.parse.corenlp.CoreNLPDependencyParser.make_tree
nltk.parse.corenlp.CoreNLPDependencyParser.html#make_tree
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.corenlp.transform
nltk.parse.corenlp.html#transform
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.mapping._UNIVERSAL_DATA
nltk.tag.mapping.html#_UNIVERSAL_DATA
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tag.mapping._UNIVERSAL_TAGS
nltk.tag.mapping.html#_UNIVERSAL_TAGS
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tag.mapping._MAPPINGS
nltk.tag.mapping.html#_MAPPINGS
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tag.mapping._load_universal_map
nltk.tag.mapping.html#_load_universal_map
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.mapping.tagset_mapping
nltk.tag.mapping.html#tagset_mapping
ZopeInterfaceFunction
Function
VISIBLE
Retrieve the mapping dictionary between tagsets.
-
nltk.tag.mapping.map_tag
nltk.tag.mapping.html#map_tag
ZopeInterfaceFunction
Function
VISIBLE
Maps the tag from the source tagset to the target tagset.
-
nltk.chunk.util.accuracy
nltk.chunk.util.html#accuracy
ZopeInterfaceFunction
Function
VISIBLE
Score the accuracy of the chunker against the gold standard. Strip the chunk information from the gold standard and rechunk it using the chunker, then compute the accuracy score.
-
nltk.chunk.util.ChunkScore
nltk.chunk.util.ChunkScore.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.util.ChunkScore.kwargs
nltk.chunk.util.ChunkScore.html#kwargs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Keyword arguments:
-
nltk.chunk.util.ChunkScore._tp
nltk.chunk.util.ChunkScore.html#_tp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
List of true positives
-
nltk.chunk.util.ChunkScore._fp
nltk.chunk.util.ChunkScore.html#_fp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
List of false positives
-
nltk.chunk.util.ChunkScore._fn
nltk.chunk.util.ChunkScore.html#_fn
ZopeInterfaceAttribute
Instance Variable
PRIVATE
List of false negatives
-
nltk.chunk.util.ChunkScore._tp_num
nltk.chunk.util.ChunkScore.html#_tp_num
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Number of true positives
-
nltk.chunk.util.ChunkScore._fp_num
nltk.chunk.util.ChunkScore.html#_fp_num
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Number of false positives
-
nltk.chunk.util.ChunkScore._fn_num
nltk.chunk.util.ChunkScore.html#_fn_num
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Number of false negatives.
-
nltk.chunk.util.ChunkScore.__init__
nltk.chunk.util.ChunkScore.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.chunk.util.ChunkScore._correct
nltk.chunk.util.ChunkScore.html#_correct
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._guessed
nltk.chunk.util.ChunkScore.html#_guessed
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._max_tp
nltk.chunk.util.ChunkScore.html#_max_tp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._max_fp
nltk.chunk.util.ChunkScore.html#_max_fp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._max_fn
nltk.chunk.util.ChunkScore.html#_max_fn
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._chunk_label
nltk.chunk.util.ChunkScore.html#_chunk_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._count
nltk.chunk.util.ChunkScore.html#_count
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._tags_correct
nltk.chunk.util.ChunkScore.html#_tags_correct
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._tags_total
nltk.chunk.util.ChunkScore.html#_tags_total
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._measuresNeedUpdate
nltk.chunk.util.ChunkScore.html#_measuresNeedUpdate
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore._updateMeasures
nltk.chunk.util.ChunkScore.html#_updateMeasures
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.chunk.util.ChunkScore.score
nltk.chunk.util.ChunkScore.html#score
ZopeInterfaceFunction
Method
VISIBLE
Given a correctly chunked sentence, score another chunked version of the same sentence.
-
nltk.chunk.util.ChunkScore.accuracy
nltk.chunk.util.ChunkScore.html#accuracy
ZopeInterfaceFunction
Method
VISIBLE
Return the overall tag-based accuracy for all text that have been scored by this ChunkScore, using the IOB (conll2000) tag encoding.
-
nltk.chunk.util.ChunkScore.precision
nltk.chunk.util.ChunkScore.html#precision
ZopeInterfaceFunction
Method
VISIBLE
Return the overall precision for all texts that have been scored by this ChunkScore.
-
nltk.chunk.util.ChunkScore.recall
nltk.chunk.util.ChunkScore.html#recall
ZopeInterfaceFunction
Method
VISIBLE
Return the overall recall for all texts that have been scored by this ChunkScore.
-
nltk.chunk.util.ChunkScore.f_measure
nltk.chunk.util.ChunkScore.html#f_measure
ZopeInterfaceFunction
Method
VISIBLE
Return the overall F measure for all texts that have been scored by this ChunkScore.
-
nltk.chunk.util.ChunkScore.missed
nltk.chunk.util.ChunkScore.html#missed
ZopeInterfaceFunction
Method
VISIBLE
Return the chunks which were included in the correct chunk structures, but not in the guessed chunk structures, listed in input order.
-
nltk.chunk.util.ChunkScore.incorrect
nltk.chunk.util.ChunkScore.html#incorrect
ZopeInterfaceFunction
Method
VISIBLE
Return the chunks which were included in the guessed chunk structures, but not in the correct chunk structures, listed in input order.
-
nltk.chunk.util.ChunkScore.correct
nltk.chunk.util.ChunkScore.html#correct
ZopeInterfaceFunction
Method
VISIBLE
Return the chunks which were included in the correct chunk structures, listed in input order.
-
nltk.chunk.util.ChunkScore.guessed
nltk.chunk.util.ChunkScore.html#guessed
ZopeInterfaceFunction
Method
VISIBLE
Return the chunks which were included in the guessed chunk structures, listed in input order.
-
nltk.chunk.util.ChunkScore.__len__
nltk.chunk.util.ChunkScore.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.chunk.util.ChunkScore.__repr__
nltk.chunk.util.ChunkScore.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a concise representation of this ChunkScoring.
-
nltk.chunk.util.ChunkScore.__str__
nltk.chunk.util.ChunkScore.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.chunk.util._chunksets
nltk.chunk.util.html#_chunksets
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.chunk.util.tagstr2tree
nltk.chunk.util.html#tagstr2tree
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.chunk.util._LINE_RE
nltk.chunk.util.html#_LINE_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.chunk.util.conllstr2tree
nltk.chunk.util.html#conllstr2tree
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.chunk.util.tree2conlltags
nltk.chunk.util.html#tree2conlltags
ZopeInterfaceFunction
Function
VISIBLE
Return a list of 3-tuples containing (word, tag, IOB-tag). Convert a tree to the CoNLL IOB tag format.
-
nltk.chunk.util.conlltags2tree
nltk.chunk.util.html#conlltags2tree
ZopeInterfaceFunction
Function
VISIBLE
Convert the CoNLL IOB format to a tree.
-
nltk.chunk.util.tree2conllstr
nltk.chunk.util.html#tree2conllstr
ZopeInterfaceFunction
Function
VISIBLE
Return a multiline string where each line contains a word, tag and IOB tag. Convert a tree to the CoNLL IOB string format
-
nltk.chunk.util._IEER_DOC_RE
nltk.chunk.util.html#_IEER_DOC_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.chunk.util._IEER_TYPE_RE
nltk.chunk.util.html#_IEER_TYPE_RE
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.chunk.util._ieer_read_text
nltk.chunk.util.html#_ieer_read_text
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.chunk.util.ieerstr2tree
nltk.chunk.util.html#ieerstr2tree
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.chunk.util.demo
nltk.chunk.util.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chunk.api.ChunkParserI
nltk.chunk.api.ChunkParserI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.api.ChunkParserI.parse
nltk.chunk.api.ChunkParserI.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Return the best chunk structure for the given tokens and return a tree.
-
nltk.chunk.api.ChunkParserI.evaluate
nltk.chunk.api.ChunkParserI.html#evaluate
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.chunk.regexp.ChunkString
nltk.chunk.regexp.ChunkString.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.ChunkString._str
nltk.chunk.regexp.ChunkString.html#_str
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The internal string representation of the text's
encoding. This string representation contains a sequence of
angle-bracket delimited tags, with chunking indicated by
braces. An example of this encoding is:
-
nltk.chunk.regexp.ChunkString._pieces
nltk.chunk.regexp.ChunkString.html#_pieces
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The tagged tokens and chunks encoded by this ChunkString.
-
nltk.chunk.regexp.ChunkString._debug
nltk.chunk.regexp.ChunkString.html#_debug
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The debug level. See the constructor docs.
-
nltk.chunk.regexp.ChunkString.IN_CHUNK_PATTERN
nltk.chunk.regexp.ChunkString.html#IN_CHUNK_PATTERN
ZopeInterfaceAttribute
Class Variable
VISIBLE
A zero-width regexp pattern string that
will only match positions that are in chunks.
-
nltk.chunk.regexp.ChunkString.IN_STRIP_PATTERN
nltk.chunk.regexp.ChunkString.html#IN_STRIP_PATTERN
ZopeInterfaceAttribute
Class Variable
VISIBLE
A zero-width regexp pattern string that
will only match positions that are in strips.
-
nltk.chunk.regexp.ChunkString.CHUNK_TAG_CHAR
nltk.chunk.regexp.ChunkString.html#CHUNK_TAG_CHAR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.chunk.regexp.ChunkString.CHUNK_TAG
nltk.chunk.regexp.ChunkString.html#CHUNK_TAG
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.chunk.regexp.ChunkString._CHUNK
nltk.chunk.regexp.ChunkString.html#_CHUNK
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkString._STRIP
nltk.chunk.regexp.ChunkString.html#_STRIP
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkString._VALID
nltk.chunk.regexp.ChunkString.html#_VALID
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkString._BRACKETS
nltk.chunk.regexp.ChunkString.html#_BRACKETS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkString._BALANCED_BRACKETS
nltk.chunk.regexp.ChunkString.html#_BALANCED_BRACKETS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkString.__init__
nltk.chunk.regexp.ChunkString.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new ChunkString that encodes the chunking of the text tagged_tokens.
-
nltk.chunk.regexp.ChunkString._root_label
nltk.chunk.regexp.ChunkString.html#_root_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkString._tag
nltk.chunk.regexp.ChunkString.html#_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkString._verify
nltk.chunk.regexp.ChunkString.html#_verify
ZopeInterfaceFunction
Method
PRIVATE
Check to make sure that s still corresponds to some chunked version of _pieces.
-
nltk.chunk.regexp.ChunkString.to_chunkstruct
nltk.chunk.regexp.ChunkString.html#to_chunkstruct
ZopeInterfaceFunction
Method
VISIBLE
Return the chunk structure encoded by this ChunkString.
-
nltk.chunk.regexp.ChunkString.xform
nltk.chunk.regexp.ChunkString.html#xform
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.chunk.regexp.ChunkString.__repr__
nltk.chunk.regexp.ChunkString.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this ChunkString. It has the form:
-
nltk.chunk.regexp.ChunkString.__str__
nltk.chunk.regexp.ChunkString.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.chunk.regexp.RegexpChunkRule
nltk.chunk.regexp.RegexpChunkRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.RegexpChunkRule.__init__
nltk.chunk.regexp.RegexpChunkRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new RegexpChunkRule.
-
nltk.chunk.regexp.RegexpChunkRule._repl
nltk.chunk.regexp.RegexpChunkRule.html#_repl
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.RegexpChunkRule._descr
nltk.chunk.regexp.RegexpChunkRule.html#_descr
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.RegexpChunkRule._regexp
nltk.chunk.regexp.RegexpChunkRule.html#_regexp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.RegexpChunkRule.apply
nltk.chunk.regexp.RegexpChunkRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
Apply this rule to the given ChunkString. See the class reference documentation for a description of what it means to apply a rule.
-
nltk.chunk.regexp.RegexpChunkRule.descr
nltk.chunk.regexp.RegexpChunkRule.html#descr
ZopeInterfaceFunction
Method
VISIBLE
Return a short description of the purpose and/or effect of this rule.
-
nltk.chunk.regexp.RegexpChunkRule.__repr__
nltk.chunk.regexp.RegexpChunkRule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.RegexpChunkRule.fromstring
nltk.chunk.regexp.RegexpChunkRule.html#fromstring
ZopeInterfaceFunction
Static Method
VISIBLE
Create a RegexpChunkRule from a string description. Currently, the following formats are supported:
-
nltk.chunk.regexp.ChunkRule
nltk.chunk.regexp.ChunkRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.ChunkRule.__init__
nltk.chunk.regexp.ChunkRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new ChunkRule.
-
nltk.chunk.regexp.ChunkRule._pattern
nltk.chunk.regexp.ChunkRule.html#_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkRule.__repr__
nltk.chunk.regexp.ChunkRule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.StripRule
nltk.chunk.regexp.StripRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.StripRule.__init__
nltk.chunk.regexp.StripRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new StripRule.
-
nltk.chunk.regexp.StripRule._pattern
nltk.chunk.regexp.StripRule.html#_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.StripRule.__repr__
nltk.chunk.regexp.StripRule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.UnChunkRule
nltk.chunk.regexp.UnChunkRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.UnChunkRule.__init__
nltk.chunk.regexp.UnChunkRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new UnChunkRule.
-
nltk.chunk.regexp.UnChunkRule._pattern
nltk.chunk.regexp.UnChunkRule.html#_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.UnChunkRule.__repr__
nltk.chunk.regexp.UnChunkRule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.MergeRule
nltk.chunk.regexp.MergeRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.MergeRule.__init__
nltk.chunk.regexp.MergeRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new MergeRule.
-
nltk.chunk.regexp.MergeRule._left_tag_pattern
nltk.chunk.regexp.MergeRule.html#_left_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.MergeRule._right_tag_pattern
nltk.chunk.regexp.MergeRule.html#_right_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.MergeRule.__repr__
nltk.chunk.regexp.MergeRule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.SplitRule
nltk.chunk.regexp.SplitRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.SplitRule.__init__
nltk.chunk.regexp.SplitRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new SplitRule.
-
nltk.chunk.regexp.SplitRule._left_tag_pattern
nltk.chunk.regexp.SplitRule.html#_left_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.SplitRule._right_tag_pattern
nltk.chunk.regexp.SplitRule.html#_right_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.SplitRule.__repr__
nltk.chunk.regexp.SplitRule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.ExpandLeftRule
nltk.chunk.regexp.ExpandLeftRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.ExpandLeftRule.__init__
nltk.chunk.regexp.ExpandLeftRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new ExpandRightRule.
-
nltk.chunk.regexp.ExpandLeftRule._left_tag_pattern
nltk.chunk.regexp.ExpandLeftRule.html#_left_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ExpandLeftRule._right_tag_pattern
nltk.chunk.regexp.ExpandLeftRule.html#_right_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ExpandLeftRule.__repr__
nltk.chunk.regexp.ExpandLeftRule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.ExpandRightRule
nltk.chunk.regexp.ExpandRightRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.ExpandRightRule.__init__
nltk.chunk.regexp.ExpandRightRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new ExpandRightRule.
-
nltk.chunk.regexp.ExpandRightRule._left_tag_pattern
nltk.chunk.regexp.ExpandRightRule.html#_left_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ExpandRightRule._right_tag_pattern
nltk.chunk.regexp.ExpandRightRule.html#_right_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ExpandRightRule.__repr__
nltk.chunk.regexp.ExpandRightRule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.ChunkRuleWithContext
nltk.chunk.regexp.ChunkRuleWithContext.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.ChunkRuleWithContext.__init__
nltk.chunk.regexp.ChunkRuleWithContext.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new ChunkRuleWithContext.
-
nltk.chunk.regexp.ChunkRuleWithContext._left_context_tag_pattern
nltk.chunk.regexp.ChunkRuleWithContext.html#_left_context_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkRuleWithContext._chunk_tag_pattern
nltk.chunk.regexp.ChunkRuleWithContext.html#_chunk_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkRuleWithContext._right_context_tag_pattern
nltk.chunk.regexp.ChunkRuleWithContext.html#_right_context_tag_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.ChunkRuleWithContext.__repr__
nltk.chunk.regexp.ChunkRuleWithContext.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule. It has the form:
-
nltk.chunk.regexp.CHUNK_TAG_PATTERN
nltk.chunk.regexp.html#CHUNK_TAG_PATTERN
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chunk.regexp.tag_pattern2re_pattern
nltk.chunk.regexp.html#tag_pattern2re_pattern
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.chunk.regexp.RegexpChunkParser
nltk.chunk.regexp.RegexpChunkParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.RegexpChunkParser._rules
nltk.chunk.regexp.RegexpChunkParser.html#_rules
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The list of rules that should be applied to a text.
-
nltk.chunk.regexp.RegexpChunkParser._trace
nltk.chunk.regexp.RegexpChunkParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The default level of tracing.
-
nltk.chunk.regexp.RegexpChunkParser.__init__
nltk.chunk.regexp.RegexpChunkParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new RegexpChunkParser.
-
nltk.chunk.regexp.RegexpChunkParser._chunk_label
nltk.chunk.regexp.RegexpChunkParser.html#_chunk_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.RegexpChunkParser._root_label
nltk.chunk.regexp.RegexpChunkParser.html#_root_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.RegexpChunkParser._trace_apply
nltk.chunk.regexp.RegexpChunkParser.html#_trace_apply
ZopeInterfaceFunction
Method
PRIVATE
Apply each rule of this RegexpChunkParser to chunkstr, in turn. Generate trace output between each rule. If verbose is true, then generate verbose output.
-
nltk.chunk.regexp.RegexpChunkParser._notrace_apply
nltk.chunk.regexp.RegexpChunkParser.html#_notrace_apply
ZopeInterfaceFunction
Method
PRIVATE
Apply each rule of this RegexpChunkParser to chunkstr, in turn.
-
nltk.chunk.regexp.RegexpChunkParser.parse
nltk.chunk.regexp.RegexpChunkParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.chunk.regexp.RegexpChunkParser.rules
nltk.chunk.regexp.RegexpChunkParser.html#rules
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.chunk.regexp.RegexpChunkParser.__repr__
nltk.chunk.regexp.RegexpChunkParser.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.chunk.regexp.RegexpChunkParser.__str__
nltk.chunk.regexp.RegexpChunkParser.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.chunk.regexp.RegexpParser
nltk.chunk.regexp.RegexpParser.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.chunk.regexp.RegexpParser._start
nltk.chunk.regexp.RegexpParser.html#_start
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The start symbol of the grammar (the root node of
resulting trees)
-
nltk.chunk.regexp.RegexpParser._stages
nltk.chunk.regexp.RegexpParser.html#_stages
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The list of parsing stages corresponding to the grammar
-
nltk.chunk.regexp.RegexpParser.__init__
nltk.chunk.regexp.RegexpParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new chunk parser, from the given start state and set of chunk patterns.
-
nltk.chunk.regexp.RegexpParser._trace
nltk.chunk.regexp.RegexpParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.RegexpParser._grammar
nltk.chunk.regexp.RegexpParser.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.RegexpParser._loop
nltk.chunk.regexp.RegexpParser.html#_loop
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.regexp.RegexpParser._read_grammar
nltk.chunk.regexp.RegexpParser.html#_read_grammar
ZopeInterfaceFunction
Method
PRIVATE
Helper function for __init__: read the grammar if it is a string.
-
nltk.chunk.regexp.RegexpParser._add_stage
nltk.chunk.regexp.RegexpParser.html#_add_stage
ZopeInterfaceFunction
Method
PRIVATE
Helper function for __init__: add a new stage to the parser.
-
nltk.chunk.regexp.RegexpParser.parse
nltk.chunk.regexp.RegexpParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Apply the chunk parser to this input.
-
nltk.chunk.regexp.RegexpParser.__repr__
nltk.chunk.regexp.RegexpParser.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.chunk.regexp.RegexpParser.__str__
nltk.chunk.regexp.RegexpParser.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.chunk.regexp.demo_eval
nltk.chunk.regexp.html#demo_eval
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.chunk.regexp.demo
nltk.chunk.regexp.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration for the RegexpChunkParser class. A single text is parsed with four different chunk parsers, using a variety of rules and strategies.
-
nltk.chunk._BINARY_NE_CHUNKER
nltk.chunk.html#_BINARY_NE_CHUNKER
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.chunk._MULTICLASS_NE_CHUNKER
nltk.chunk.html#_MULTICLASS_NE_CHUNKER
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.chunk.ne_chunk
nltk.chunk.html#ne_chunk
ZopeInterfaceFunction
Function
VISIBLE
Use NLTK's currently recommended named entity chunker to chunk the given list of tagged tokens.
-
nltk.chunk.ne_chunk_sents
nltk.chunk.html#ne_chunk_sents
ZopeInterfaceFunction
Function
VISIBLE
Use NLTK's currently recommended named entity chunker to chunk the given list of tagged sentences, each consisting of a list of tagged tokens.
-
nltk.classify.api.ClassifierI
nltk.classify.api.ClassifierI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.classify.api.ClassifierI.labels
nltk.classify.api.ClassifierI.html#labels
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.api.ClassifierI.classify
nltk.classify.api.ClassifierI.html#classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.api.ClassifierI.prob_classify
nltk.classify.api.ClassifierI.html#prob_classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.api.ClassifierI.classify_many
nltk.classify.api.ClassifierI.html#classify_many
ZopeInterfaceFunction
Method
VISIBLE
Apply self.classify() to each element of featuresets. I.e.:
-
nltk.classify.api.ClassifierI.prob_classify_many
nltk.classify.api.ClassifierI.html#prob_classify_many
ZopeInterfaceFunction
Method
VISIBLE
Apply self.prob_classify() to each element of featuresets. I.e.:
-
nltk.classify.api.MultiClassifierI
nltk.classify.api.MultiClassifierI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.classify.api.MultiClassifierI.labels
nltk.classify.api.MultiClassifierI.html#labels
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.api.MultiClassifierI.classify
nltk.classify.api.MultiClassifierI.html#classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.api.MultiClassifierI.prob_classify
nltk.classify.api.MultiClassifierI.html#prob_classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.api.MultiClassifierI.classify_many
nltk.classify.api.MultiClassifierI.html#classify_many
ZopeInterfaceFunction
Method
VISIBLE
Apply self.classify() to each element of featuresets. I.e.:
-
nltk.classify.api.MultiClassifierI.prob_classify_many
nltk.classify.api.MultiClassifierI.html#prob_classify_many
ZopeInterfaceFunction
Method
VISIBLE
Apply self.prob_classify() to each element of featuresets. I.e.:
-
nltk.classify.megam.numpy
nltk.classify.megam.html#numpy
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.classify.megam._megam_bin
nltk.classify.megam.html#_megam_bin
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.classify.megam.config_megam
nltk.classify.megam.html#config_megam
ZopeInterfaceFunction
Function
VISIBLE
Configure NLTK's interface to the megam maxent optimization package.
-
nltk.classify.megam.write_megam_file
nltk.classify.megam.html#write_megam_file
ZopeInterfaceFunction
Function
VISIBLE
Generate an input file for megam based on the given corpus of classified tokens.
-
nltk.classify.megam.parse_megam_weights
nltk.classify.megam.html#parse_megam_weights
ZopeInterfaceFunction
Function
VISIBLE
Given the stdout output generated by megam when training a model, return a numpy array containing the corresponding weight vector. This function does not currently handle bias features.
-
nltk.classify.megam._write_megam_features
nltk.classify.megam.html#_write_megam_features
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.classify.megam.call_megam
nltk.classify.megam.html#call_megam
ZopeInterfaceFunction
Function
VISIBLE
Call the megam binary with the given arguments.
-
nltk.classify.weka._weka_classpath
nltk.classify.weka.html#_weka_classpath
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.classify.weka._weka_search
nltk.classify.weka.html#_weka_search
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.classify.weka.config_weka
nltk.classify.weka.html#config_weka
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.weka._check_weka_version
nltk.classify.weka.html#_check_weka_version
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.classify.weka.WekaClassifier
nltk.classify.weka.WekaClassifier.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.classify.weka.WekaClassifier.__init__
nltk.classify.weka.WekaClassifier.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.weka.WekaClassifier._formatter
nltk.classify.weka.WekaClassifier.html#_formatter
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.weka.WekaClassifier._model
nltk.classify.weka.WekaClassifier.html#_model
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.weka.WekaClassifier.prob_classify_many
nltk.classify.weka.WekaClassifier.html#prob_classify_many
ZopeInterfaceFunction
Method
VISIBLE
Apply self.prob_classify() to each element of featuresets. I.e.:
-
nltk.classify.weka.WekaClassifier.classify_many
nltk.classify.weka.WekaClassifier.html#classify_many
ZopeInterfaceFunction
Method
VISIBLE
Apply self.classify() to each element of featuresets. I.e.:
-
nltk.classify.weka.WekaClassifier._classify_many
nltk.classify.weka.WekaClassifier.html#_classify_many
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.classify.weka.WekaClassifier.parse_weka_distribution
nltk.classify.weka.WekaClassifier.html#parse_weka_distribution
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.weka.WekaClassifier.parse_weka_output
nltk.classify.weka.WekaClassifier.html#parse_weka_output
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.weka.WekaClassifier._CLASSIFIER_CLASS
nltk.classify.weka.WekaClassifier.html#_CLASSIFIER_CLASS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.classify.weka.WekaClassifier.train
nltk.classify.weka.WekaClassifier.html#train
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.classify.weka.ARFF_Formatter
nltk.classify.weka.ARFF_Formatter.html
ZopeInterfaceClass
Class
VISIBLE
Converts featuresets and labeled featuresets to ARFF-formatted strings, appropriate for input into Weka.
-
nltk.classify.weka.ARFF_Formatter.__init__
nltk.classify.weka.ARFF_Formatter.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.weka.ARFF_Formatter._labels
nltk.classify.weka.ARFF_Formatter.html#_labels
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.weka.ARFF_Formatter._features
nltk.classify.weka.ARFF_Formatter.html#_features
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.weka.ARFF_Formatter.format
nltk.classify.weka.ARFF_Formatter.html#format
ZopeInterfaceFunction
Method
VISIBLE
Returns a string representation of ARFF output for the given data.
-
nltk.classify.weka.ARFF_Formatter.labels
nltk.classify.weka.ARFF_Formatter.html#labels
ZopeInterfaceFunction
Method
VISIBLE
Returns the list of classes.
-
nltk.classify.weka.ARFF_Formatter.write
nltk.classify.weka.ARFF_Formatter.html#write
ZopeInterfaceFunction
Method
VISIBLE
Writes ARFF data to a file for the given data.
-
nltk.classify.weka.ARFF_Formatter.from_train
nltk.classify.weka.ARFF_Formatter.html#from_train
ZopeInterfaceFunction
Static Method
VISIBLE
Constructs an ARFF_Formatter instance with class labels and feature types determined from the given data. Handles boolean, numeric and string (note: not nominal) types.
-
nltk.classify.weka.ARFF_Formatter.data_section
nltk.classify.weka.ARFF_Formatter.html#data_section
ZopeInterfaceFunction
Method
VISIBLE
Returns the ARFF data section for the given data.
-
nltk.classify.weka.ARFF_Formatter._fmt_arff_val
nltk.classify.weka.ARFF_Formatter.html#_fmt_arff_val
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.classify.util.apply_features
nltk.classify.util.html#apply_features
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.classify.util.attested_labels
nltk.classify.util.html#attested_labels
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.classify.util.log_likelihood
nltk.classify.util.html#log_likelihood
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.util.accuracy
nltk.classify.util.html#accuracy
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.util.CutoffChecker
nltk.classify.util.CutoffChecker.html
ZopeInterfaceClass
Class
VISIBLE
A helper class that implements cutoff checks based on number of iterations and log likelihood.
-
nltk.classify.util.CutoffChecker.__init__
nltk.classify.util.CutoffChecker.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.util.CutoffChecker.cutoffs
nltk.classify.util.CutoffChecker.html#cutoffs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.classify.util.CutoffChecker.ll
nltk.classify.util.CutoffChecker.html#ll
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.classify.util.CutoffChecker.acc
nltk.classify.util.CutoffChecker.html#acc
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.classify.util.CutoffChecker.iter
nltk.classify.util.CutoffChecker.html#iter
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.classify.util.CutoffChecker.check
nltk.classify.util.CutoffChecker.html#check
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.util.names_demo_features
nltk.classify.util.html#names_demo_features
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.util.binary_names_demo_features
nltk.classify.util.html#binary_names_demo_features
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.util.names_demo
nltk.classify.util.html#names_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.util.partial_names_demo
nltk.classify.util.html#partial_names_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.util._inst_cache
nltk.classify.util.html#_inst_cache
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.classify.util.wsd_demo
nltk.classify.util.html#wsd_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.util.check_megam_config
nltk.classify.util.html#check_megam_config
ZopeInterfaceFunction
Function
VISIBLE
Checks whether the MEGAM binary is configured.
-
nltk.classify.weka.make_classifier
nltk.classify.weka.html#make_classifier
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.weka.classifier
nltk.classify.weka.html#classifier
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.classify.naivebayes.NaiveBayesClassifier
nltk.classify.naivebayes.NaiveBayesClassifier.html
ZopeInterfaceClass
Class
VISIBLE
A Naive Bayes classifier. Naive Bayes classifiers are paramaterized by two probability distributions:
-
nltk.classify.naivebayes.NaiveBayesClassifier.__init__
nltk.classify.naivebayes.NaiveBayesClassifier.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.naivebayes.NaiveBayesClassifier._label_probdist
nltk.classify.naivebayes.NaiveBayesClassifier.html#_label_probdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.naivebayes.NaiveBayesClassifier._feature_probdist
nltk.classify.naivebayes.NaiveBayesClassifier.html#_feature_probdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.naivebayes.NaiveBayesClassifier._labels
nltk.classify.naivebayes.NaiveBayesClassifier.html#_labels
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.naivebayes.NaiveBayesClassifier.labels
nltk.classify.naivebayes.NaiveBayesClassifier.html#labels
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.naivebayes.NaiveBayesClassifier.classify
nltk.classify.naivebayes.NaiveBayesClassifier.html#classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.naivebayes.NaiveBayesClassifier.prob_classify
nltk.classify.naivebayes.NaiveBayesClassifier.html#prob_classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.naivebayes.NaiveBayesClassifier.show_most_informative_features
nltk.classify.naivebayes.NaiveBayesClassifier.html#show_most_informative_features
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.naivebayes.NaiveBayesClassifier.most_informative_features
nltk.classify.naivebayes.NaiveBayesClassifier.html#most_informative_features
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.naivebayes.NaiveBayesClassifier._most_informative_features
nltk.classify.naivebayes.NaiveBayesClassifier.html#_most_informative_features
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.naivebayes.NaiveBayesClassifier.train
nltk.classify.naivebayes.NaiveBayesClassifier.html#train
ZopeInterfaceFunction
Class Method
VISIBLE
-
nltk.classify.naivebayes.demo
nltk.classify.naivebayes.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.positivenaivebayes.PositiveNaiveBayesClassifier
nltk.classify.positivenaivebayes.PositiveNaiveBayesClassifier.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 static method documented
-
nltk.classify.positivenaivebayes.PositiveNaiveBayesClassifier.train
nltk.classify.positivenaivebayes.PositiveNaiveBayesClassifier.html#train
ZopeInterfaceFunction
Static Method
VISIBLE
-
nltk.classify.positivenaivebayes.demo
nltk.classify.positivenaivebayes.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier
nltk.classify.decisiontree.DecisionTreeClassifier.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/4 instance variable, 3/8 methods, 1/6 static method documented
-
nltk.classify.decisiontree.DecisionTreeClassifier.__init__
nltk.classify.decisiontree.DecisionTreeClassifier.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.decisiontree.DecisionTreeClassifier._label
nltk.classify.decisiontree.DecisionTreeClassifier.html#_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier._fname
nltk.classify.decisiontree.DecisionTreeClassifier.html#_fname
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier._decisions
nltk.classify.decisiontree.DecisionTreeClassifier.html#_decisions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier._default
nltk.classify.decisiontree.DecisionTreeClassifier.html#_default
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier.labels
nltk.classify.decisiontree.DecisionTreeClassifier.html#labels
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.decisiontree.DecisionTreeClassifier.classify
nltk.classify.decisiontree.DecisionTreeClassifier.html#classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.decisiontree.DecisionTreeClassifier.error
nltk.classify.decisiontree.DecisionTreeClassifier.html#error
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier.pretty_format
nltk.classify.decisiontree.DecisionTreeClassifier.html#pretty_format
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.decisiontree.DecisionTreeClassifier.pseudocode
nltk.classify.decisiontree.DecisionTreeClassifier.html#pseudocode
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this decision tree that expresses the decisions it makes as a nested set of pseudocode if statements.
-
nltk.classify.decisiontree.DecisionTreeClassifier.__str__
nltk.classify.decisiontree.DecisionTreeClassifier.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier.train
nltk.classify.decisiontree.DecisionTreeClassifier.html#train
ZopeInterfaceFunction
Static Method
VISIBLE
-
nltk.classify.decisiontree.DecisionTreeClassifier.leaf
nltk.classify.decisiontree.DecisionTreeClassifier.html#leaf
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier.stump
nltk.classify.decisiontree.DecisionTreeClassifier.html#stump
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier.refine
nltk.classify.decisiontree.DecisionTreeClassifier.html#refine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier.best_stump
nltk.classify.decisiontree.DecisionTreeClassifier.html#best_stump
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier.binary_stump
nltk.classify.decisiontree.DecisionTreeClassifier.html#binary_stump
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.classify.decisiontree.DecisionTreeClassifier.best_binary_stump
nltk.classify.decisiontree.DecisionTreeClassifier.html#best_binary_stump
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.classify.decisiontree.f
nltk.classify.decisiontree.html#f
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.decisiontree.demo
nltk.classify.decisiontree.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.tadm._tadm_bin
nltk.classify.tadm.html#_tadm_bin
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.classify.tadm.config_tadm
nltk.classify.tadm.html#config_tadm
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.tadm.write_tadm_file
nltk.classify.tadm.html#write_tadm_file
ZopeInterfaceFunction
Function
VISIBLE
Generate an input file for tadm based on the given corpus of classified tokens.
-
nltk.classify.tadm.parse_tadm_weights
nltk.classify.tadm.html#parse_tadm_weights
ZopeInterfaceFunction
Function
VISIBLE
Given the stdout output generated by tadm when training a model, return a numpy array containing the corresponding weight vector.
-
nltk.classify.tadm.call_tadm
nltk.classify.tadm.html#call_tadm
ZopeInterfaceFunction
Function
VISIBLE
Call the tadm binary with the given arguments.
-
nltk.classify.tadm.names_demo
nltk.classify.tadm.html#names_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.tadm.encoding_demo
nltk.classify.tadm.html#encoding_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.maxent.MaxentClassifier
nltk.classify.maxent.MaxentClassifier.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.classify.maxent.MaxentClassifier.__init__
nltk.classify.maxent.MaxentClassifier.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new maxent classifier model. Typically, new classifier models are created using the ``train()`` method.
-
nltk.classify.maxent.MaxentClassifier._encoding
nltk.classify.maxent.MaxentClassifier.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.MaxentClassifier._weights
nltk.classify.maxent.MaxentClassifier.html#_weights
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.MaxentClassifier._logarithmic
nltk.classify.maxent.MaxentClassifier.html#_logarithmic
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.MaxentClassifier.labels
nltk.classify.maxent.MaxentClassifier.html#labels
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.maxent.MaxentClassifier.set_weights
nltk.classify.maxent.MaxentClassifier.html#set_weights
ZopeInterfaceFunction
Method
VISIBLE
Set the feature weight vector for this classifier. :param new_weights: The new feature weight vector. :type new_weights: list of float
-
nltk.classify.maxent.MaxentClassifier.weights
nltk.classify.maxent.MaxentClassifier.html#weights
ZopeInterfaceFunction
Method
VISIBLE
:return: The feature weight vector for this classifier. :rtype: list of float
-
nltk.classify.maxent.MaxentClassifier.classify
nltk.classify.maxent.MaxentClassifier.html#classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.maxent.MaxentClassifier.prob_classify
nltk.classify.maxent.MaxentClassifier.html#prob_classify
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.maxent.MaxentClassifier.explain
nltk.classify.maxent.MaxentClassifier.html#explain
ZopeInterfaceFunction
Method
VISIBLE
Print a table showing the effect of each of the features in the given feature set, and how they combine to determine the probabilities of each label for that featureset.
-
nltk.classify.maxent.MaxentClassifier.most_informative_features
nltk.classify.maxent.MaxentClassifier.html#most_informative_features
ZopeInterfaceFunction
Method
VISIBLE
Generates the ranked list of informative features from most to least.
-
nltk.classify.maxent.MaxentClassifier._most_informative_features
nltk.classify.maxent.MaxentClassifier.html#_most_informative_features
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.MaxentClassifier.show_most_informative_features
nltk.classify.maxent.MaxentClassifier.html#show_most_informative_features
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.MaxentClassifier.__repr__
nltk.classify.maxent.MaxentClassifier.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.maxent.MaxentClassifier.ALGORITHMS
nltk.classify.maxent.MaxentClassifier.html#ALGORITHMS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.classify.maxent.MaxentClassifier.train
nltk.classify.maxent.MaxentClassifier.html#train
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.classify.maxent.MaxentFeatureEncodingI
nltk.classify.maxent.MaxentFeatureEncodingI.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.classify.maxent.MaxentFeatureEncodingI.encode
nltk.classify.maxent.MaxentFeatureEncodingI.html#encode
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.MaxentFeatureEncodingI.length
nltk.classify.maxent.MaxentFeatureEncodingI.html#length
ZopeInterfaceFunction
Method
VISIBLE
:return: The size of the fixed-length joint-feature vectors that are generated by this encoding. :rtype: int
-
nltk.classify.maxent.MaxentFeatureEncodingI.labels
nltk.classify.maxent.MaxentFeatureEncodingI.html#labels
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.MaxentFeatureEncodingI.describe
nltk.classify.maxent.MaxentFeatureEncodingI.html#describe
ZopeInterfaceFunction
Method
VISIBLE
:return: A string describing the value of the joint-feature whose index in the generated feature vectors is ``fid``. :rtype: str
-
nltk.classify.maxent.MaxentFeatureEncodingI.train
nltk.classify.maxent.MaxentFeatureEncodingI.html#train
ZopeInterfaceFunction
Method
VISIBLE
Construct and return new feature encoding, based on a given training corpus ``train_toks``.
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html
ZopeInterfaceClass
Class
VISIBLE
A feature encoding that calls a user-supplied function to map a given featureset/label pair to a sparse joint-feature vector.
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.__init__
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new feature encoding based on the given function.
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding._length
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html#_length
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding._func
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html#_func
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding._labels
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html#_labels
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.encode
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html#encode
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.length
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html#length
ZopeInterfaceFunction
Method
VISIBLE
:return: The size of the fixed-length joint-feature vectors that are generated by this encoding. :rtype: int
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.labels
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html#labels
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.describe
nltk.classify.maxent.FunctionBackedMaxentFeatureEncoding.html#describe
ZopeInterfaceFunction
Method
VISIBLE
:return: A string describing the value of the joint-feature whose index in the generated feature vectors is ``fid``. :rtype: str
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html
ZopeInterfaceClass
Class
VISIBLE
A feature encoding that generates vectors containing a binary joint-features of the form:
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding.__init__
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
:param labels: A list of the "known labels" for this encoding.
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding._labels
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#_labels
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of attested labels.
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding._mapping
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#_mapping
ZopeInterfaceAttribute
Instance Variable
PRIVATE
dict mapping from (fname,fval,label) -> fid
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding._length
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#_length
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The length of generated joint feature vectors.
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding._alwayson
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#_alwayson
ZopeInterfaceAttribute
Instance Variable
PRIVATE
dict mapping from label -> fid
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding._unseen
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#_unseen
ZopeInterfaceAttribute
Instance Variable
PRIVATE
dict mapping from fname -> fid
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding.encode
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#encode
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding.describe
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#describe
ZopeInterfaceFunction
Method
VISIBLE
:return: A string describing the value of the joint-feature whose index in the generated feature vectors is ``fid``. :rtype: str
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding._inv_mapping
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#_inv_mapping
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding.labels
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#labels
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding.length
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#length
ZopeInterfaceFunction
Method
VISIBLE
:return: The size of the fixed-length joint-feature vectors that are generated by this encoding. :rtype: int
-
nltk.classify.maxent.BinaryMaxentFeatureEncoding.train
nltk.classify.maxent.BinaryMaxentFeatureEncoding.html#train
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.classify.maxent.GISEncoding
nltk.classify.maxent.GISEncoding.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.classify.maxent.GISEncoding.__init__
nltk.classify.maxent.GISEncoding.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.GISEncoding._C
nltk.classify.maxent.GISEncoding.html#_C
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.GISEncoding.C
nltk.classify.maxent.GISEncoding.html#C
ZopeInterfaceAttribute
Property
VISIBLE
The non-negative constant that all encoded feature vectors will sum to.
-
nltk.classify.maxent.GISEncoding.encode
nltk.classify.maxent.GISEncoding.html#encode
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.GISEncoding.length
nltk.classify.maxent.GISEncoding.html#length
ZopeInterfaceFunction
Method
VISIBLE
:return: The size of the fixed-length joint-feature vectors that are generated by this encoding. :rtype: int
-
nltk.classify.maxent.GISEncoding.describe
nltk.classify.maxent.GISEncoding.html#describe
ZopeInterfaceFunction
Method
VISIBLE
:return: A string describing the value of the joint-feature whose index in the generated feature vectors is ``fid``. :rtype: str
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.__init__
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
:param labels: A list of the "known labels" for this encoding.
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding._mapping
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html#_mapping
ZopeInterfaceAttribute
Instance Variable
PRIVATE
dict mapping from (fname,fval,label) -> fid
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding._label_mapping
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html#_label_mapping
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.encode
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html#encode
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.labels
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html#labels
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.describe
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html#describe
ZopeInterfaceFunction
Method
VISIBLE
:return: A string describing the value of the joint-feature whose index in the generated feature vectors is ``fid``. :rtype: str
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.length
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html#length
ZopeInterfaceFunction
Method
VISIBLE
:return: The size of the fixed-length joint-feature vectors that are generated by this encoding. :rtype: int
-
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.train
nltk.classify.maxent.TadmEventMaxentFeatureEncoding.html#train
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.classify.maxent.TypedMaxentFeatureEncoding
nltk.classify.maxent.TypedMaxentFeatureEncoding.html
ZopeInterfaceClass
Class
VISIBLE
A feature encoding that generates vectors containing integer, float and binary joint-features of the form:
-
nltk.classify.maxent.TypedMaxentFeatureEncoding.__init__
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
:param labels: A list of the "known labels" for this encoding.
-
nltk.classify.maxent.TypedMaxentFeatureEncoding._labels
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#_labels
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of attested labels.
-
nltk.classify.maxent.TypedMaxentFeatureEncoding._mapping
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#_mapping
ZopeInterfaceAttribute
Instance Variable
PRIVATE
dict mapping from (fname,fval,label) -> fid
-
nltk.classify.maxent.TypedMaxentFeatureEncoding._length
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#_length
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The length of generated joint feature vectors.
-
nltk.classify.maxent.TypedMaxentFeatureEncoding._alwayson
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#_alwayson
ZopeInterfaceAttribute
Instance Variable
PRIVATE
dict mapping from label -> fid
-
nltk.classify.maxent.TypedMaxentFeatureEncoding._unseen
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#_unseen
ZopeInterfaceAttribute
Instance Variable
PRIVATE
dict mapping from fname -> fid
-
nltk.classify.maxent.TypedMaxentFeatureEncoding.encode
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#encode
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.TypedMaxentFeatureEncoding.describe
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#describe
ZopeInterfaceFunction
Method
VISIBLE
:return: A string describing the value of the joint-feature whose index in the generated feature vectors is ``fid``. :rtype: str
-
nltk.classify.maxent.TypedMaxentFeatureEncoding._inv_mapping
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#_inv_mapping
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.maxent.TypedMaxentFeatureEncoding.labels
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#labels
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.classify.maxent.TypedMaxentFeatureEncoding.length
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#length
ZopeInterfaceFunction
Method
VISIBLE
:return: The size of the fixed-length joint-feature vectors that are generated by this encoding. :rtype: int
-
nltk.classify.maxent.TypedMaxentFeatureEncoding.train
nltk.classify.maxent.TypedMaxentFeatureEncoding.html#train
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.classify.maxent.train_maxent_classifier_with_gis
nltk.classify.maxent.html#train_maxent_classifier_with_gis
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.classify.maxent.calculate_empirical_fcount
nltk.classify.maxent.html#calculate_empirical_fcount
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.maxent.calculate_estimated_fcount
nltk.classify.maxent.html#calculate_estimated_fcount
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.maxent.train_maxent_classifier_with_iis
nltk.classify.maxent.html#train_maxent_classifier_with_iis
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.classify.maxent.calculate_nfmap
nltk.classify.maxent.html#calculate_nfmap
ZopeInterfaceFunction
Function
VISIBLE
Construct a map that can be used to compress ``nf`` (which is typically sparse).
-
nltk.classify.maxent.calculate_deltas
nltk.classify.maxent.html#calculate_deltas
ZopeInterfaceFunction
Function
VISIBLE
Calculate the update values for the classifier weights for this iteration of IIS. These update weights are the value of ``delta`` that solves the equation:
-
nltk.classify.maxent.train_maxent_classifier_with_megam
nltk.classify.maxent.html#train_maxent_classifier_with_megam
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.classify.maxent.TadmMaxentClassifier
nltk.classify.maxent.TadmMaxentClassifier.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.classify.maxent.TadmMaxentClassifier.train
nltk.classify.maxent.TadmMaxentClassifier.html#train
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.classify.maxent.demo
nltk.classify.maxent.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.rte_classify.rte_features
nltk.classify.rte_classify.html#rte_features
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.rte_classify.rte_featurize
nltk.classify.rte_classify.html#rte_featurize
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.rte_classify.rte_classifier
nltk.classify.rte_classify.html#rte_classifier
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.classify.scikitlearn.SklearnClassifier
nltk.classify.scikitlearn.SklearnClassifier.html
ZopeInterfaceClass
Class
VISIBLE
Wrapper for scikit-learn classifiers.
-
nltk.classify.scikitlearn.SklearnClassifier.__init__
nltk.classify.scikitlearn.SklearnClassifier.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.classify.scikitlearn.SklearnClassifier._clf
nltk.classify.scikitlearn.SklearnClassifier.html#_clf
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.scikitlearn.SklearnClassifier._encoder
nltk.classify.scikitlearn.SklearnClassifier.html#_encoder
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.scikitlearn.SklearnClassifier._vectorizer
nltk.classify.scikitlearn.SklearnClassifier.html#_vectorizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.scikitlearn.SklearnClassifier.__repr__
nltk.classify.scikitlearn.SklearnClassifier.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.scikitlearn.SklearnClassifier.classify_many
nltk.classify.scikitlearn.SklearnClassifier.html#classify_many
ZopeInterfaceFunction
Method
VISIBLE
Classify a batch of samples.
-
nltk.classify.scikitlearn.SklearnClassifier.prob_classify_many
nltk.classify.scikitlearn.SklearnClassifier.html#prob_classify_many
ZopeInterfaceFunction
Method
VISIBLE
Compute per-class probabilities for a batch of samples.
-
nltk.classify.scikitlearn.SklearnClassifier.labels
nltk.classify.scikitlearn.SklearnClassifier.html#labels
ZopeInterfaceFunction
Method
VISIBLE
The class labels used by this classifier.
-
nltk.classify.scikitlearn.SklearnClassifier.train
nltk.classify.scikitlearn.SklearnClassifier.html#train
ZopeInterfaceFunction
Method
VISIBLE
Train (fit) the scikit-learn estimator.
-
nltk.classify.scikitlearn.SklearnClassifier._make_probdist
nltk.classify.scikitlearn.SklearnClassifier.html#_make_probdist
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.classify.senna._senna_url
nltk.classify.senna.html#_senna_url
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.classify.senna.Senna
nltk.classify.senna.Senna.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 0/1 class variable, 4/5 methods documented
-
nltk.classify.senna.Senna.SUPPORTED_OPERATIONS
nltk.classify.senna.Senna.html#SUPPORTED_OPERATIONS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.classify.senna.Senna.__init__
nltk.classify.senna.Senna.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.senna.Senna._encoding
nltk.classify.senna.Senna.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.senna.Senna._path
nltk.classify.senna.Senna.html#_path
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.senna.Senna.operations
nltk.classify.senna.Senna.html#operations
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.classify.senna.Senna.executable
nltk.classify.senna.Senna.html#executable
ZopeInterfaceFunction
Method
VISIBLE
The function that determines the system specific binary that should be used in the pipeline. In case, the system is not known the default senna binary will be used.
-
nltk.classify.senna.Senna._map
nltk.classify.senna.Senna.html#_map
ZopeInterfaceFunction
Method
PRIVATE
A method that calculates the order of the columns that SENNA pipeline will output the tags into. This depends on the operations being ordered.
-
nltk.classify.senna.Senna.tag
nltk.classify.senna.Senna.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Applies the specified operation(s) on a list of tokens.
-
nltk.classify.senna.Senna.tag_sents
nltk.classify.senna.Senna.html#tag_sents
ZopeInterfaceFunction
Method
VISIBLE
Applies the tag method over a list of sentences. This method will return a list of dictionaries. Every dictionary will contain a word with its calculated annotations/tags.
-
nltk.classify.textcat.re
nltk.classify.textcat.html#re
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.classify.textcat.TextCat
nltk.classify.textcat.TextCat.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 instance variable, 0/3 class variable, 5/6 methods documented
-
nltk.classify.textcat.TextCat._corpus
nltk.classify.textcat.TextCat.html#_corpus
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.classify.textcat.TextCat.fingerprints
nltk.classify.textcat.TextCat.html#fingerprints
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.classify.textcat.TextCat._START_CHAR
nltk.classify.textcat.TextCat.html#_START_CHAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.classify.textcat.TextCat._END_CHAR
nltk.classify.textcat.TextCat.html#_END_CHAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.classify.textcat.TextCat.last_distances
nltk.classify.textcat.TextCat.html#last_distances
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.classify.textcat.TextCat.__init__
nltk.classify.textcat.TextCat.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.textcat.TextCat.remove_punctuation
nltk.classify.textcat.TextCat.html#remove_punctuation
ZopeInterfaceFunction
Method
VISIBLE
Get rid of punctuation except apostrophes
-
nltk.classify.textcat.TextCat.profile
nltk.classify.textcat.TextCat.html#profile
ZopeInterfaceFunction
Method
VISIBLE
Create FreqDist of trigrams within text
-
nltk.classify.textcat.TextCat.calc_dist
nltk.classify.textcat.TextCat.html#calc_dist
ZopeInterfaceFunction
Method
VISIBLE
Calculate the "out-of-place" measure between the text and language profile for a single trigram
-
nltk.classify.textcat.TextCat.lang_dists
nltk.classify.textcat.TextCat.html#lang_dists
ZopeInterfaceFunction
Method
VISIBLE
Calculate the "out-of-place" measure between the text and all languages
-
nltk.classify.textcat.TextCat.guess_language
nltk.classify.textcat.TextCat.html#guess_language
ZopeInterfaceFunction
Method
VISIBLE
Find the language with the min distance to the text and return its ISO 639-3 code
-
nltk.classify.textcat.demo
nltk.classify.textcat.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.api.Prover
nltk.inference.api.Prover.html
ZopeInterfaceClass
Class
VISIBLE
Interface for trying to prove a goal from assumptions. Both the goal and the assumptions are constrained to be formulas of logic.Expression.
-
nltk.inference.api.Prover.prove
nltk.inference.api.Prover.html#prove
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.api.Prover._prove
nltk.inference.api.Prover.html#_prove
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.inference.api.ModelBuilder
nltk.inference.api.ModelBuilder.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.inference.api.ModelBuilder.build_model
nltk.inference.api.ModelBuilder.html#build_model
ZopeInterfaceFunction
Method
VISIBLE
Perform the actual model building. :return: Whether a model was generated :rtype: bool
-
nltk.inference.api.ModelBuilder._build_model
nltk.inference.api.ModelBuilder.html#_build_model
ZopeInterfaceFunction
Method
PRIVATE
Perform the actual model building. :return: Whether a model was generated, and the model itself :rtype: tuple(bool, sem.Valuation)
-
nltk.inference.api.TheoremToolCommand
nltk.inference.api.TheoremToolCommand.html
ZopeInterfaceClass
Class
VISIBLE
This class holds a goal and a list of assumptions to be used in proving or model building.
-
nltk.inference.api.TheoremToolCommand.add_assumptions
nltk.inference.api.TheoremToolCommand.html#add_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Add new assumptions to the assumption list.
-
nltk.inference.api.TheoremToolCommand.retract_assumptions
nltk.inference.api.TheoremToolCommand.html#retract_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Retract assumptions from the assumption list.
-
nltk.inference.api.TheoremToolCommand.assumptions
nltk.inference.api.TheoremToolCommand.html#assumptions
ZopeInterfaceFunction
Method
VISIBLE
List the current assumptions.
-
nltk.inference.api.TheoremToolCommand.goal
nltk.inference.api.TheoremToolCommand.html#goal
ZopeInterfaceFunction
Method
VISIBLE
Return the goal
-
nltk.inference.api.TheoremToolCommand.print_assumptions
nltk.inference.api.TheoremToolCommand.html#print_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Print the list of the current assumptions.
-
nltk.inference.api.ProverCommand
nltk.inference.api.ProverCommand.html
ZopeInterfaceClass
Class
VISIBLE
This class holds a Prover, a goal, and a list of assumptions. When prove() is called, the Prover is executed with the goal and assumptions.
-
nltk.inference.api.ProverCommand.prove
nltk.inference.api.ProverCommand.html#prove
ZopeInterfaceFunction
Method
VISIBLE
Perform the actual proof.
-
nltk.inference.api.ProverCommand.proof
nltk.inference.api.ProverCommand.html#proof
ZopeInterfaceFunction
Method
VISIBLE
Return the proof string :param simplify: bool simplify the proof? :return: str
-
nltk.inference.api.ProverCommand.get_prover
nltk.inference.api.ProverCommand.html#get_prover
ZopeInterfaceFunction
Method
VISIBLE
Return the prover object :return: Prover
-
nltk.inference.api.ModelBuilderCommand
nltk.inference.api.ModelBuilderCommand.html
ZopeInterfaceClass
Class
VISIBLE
This class holds a ModelBuilder, a goal, and a list of assumptions. When build_model() is called, the ModelBuilder is executed with the goal and assumptions.
-
nltk.inference.api.ModelBuilderCommand.build_model
nltk.inference.api.ModelBuilderCommand.html#build_model
ZopeInterfaceFunction
Method
VISIBLE
Perform the actual model building. :return: A model if one is generated; None otherwise. :rtype: sem.Valuation
-
nltk.inference.api.ModelBuilderCommand.model
nltk.inference.api.ModelBuilderCommand.html#model
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of the model
-
nltk.inference.api.ModelBuilderCommand.get_model_builder
nltk.inference.api.ModelBuilderCommand.html#get_model_builder
ZopeInterfaceFunction
Method
VISIBLE
Return the model builder object :return: ModelBuilder
-
nltk.inference.api.BaseTheoremToolCommand
nltk.inference.api.BaseTheoremToolCommand.html
ZopeInterfaceClass
Class
VISIBLE
This class holds a goal and a list of assumptions to be used in proving or model building.
-
nltk.inference.api.BaseTheoremToolCommand.__init__
nltk.inference.api.BaseTheoremToolCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.api.BaseTheoremToolCommand._goal
nltk.inference.api.BaseTheoremToolCommand.html#_goal
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.BaseTheoremToolCommand._assumptions
nltk.inference.api.BaseTheoremToolCommand.html#_assumptions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.BaseTheoremToolCommand._result
nltk.inference.api.BaseTheoremToolCommand.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A holder for the result, to prevent unnecessary re-proving
-
nltk.inference.api.BaseTheoremToolCommand.add_assumptions
nltk.inference.api.BaseTheoremToolCommand.html#add_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Add new assumptions to the assumption list.
-
nltk.inference.api.BaseTheoremToolCommand.retract_assumptions
nltk.inference.api.BaseTheoremToolCommand.html#retract_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Retract assumptions from the assumption list.
-
nltk.inference.api.BaseTheoremToolCommand.assumptions
nltk.inference.api.BaseTheoremToolCommand.html#assumptions
ZopeInterfaceFunction
Method
VISIBLE
List the current assumptions.
-
nltk.inference.api.BaseTheoremToolCommand.goal
nltk.inference.api.BaseTheoremToolCommand.html#goal
ZopeInterfaceFunction
Method
VISIBLE
Return the goal
-
nltk.inference.api.BaseTheoremToolCommand.print_assumptions
nltk.inference.api.BaseTheoremToolCommand.html#print_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Print the list of the current assumptions.
-
nltk.inference.api.BaseProverCommand
nltk.inference.api.BaseProverCommand.html
ZopeInterfaceClass
Class
VISIBLE
This class holds a Prover, a goal, and a list of assumptions. When prove() is called, the Prover is executed with the goal and assumptions.
-
nltk.inference.api.BaseProverCommand.__init__
nltk.inference.api.BaseProverCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.api.BaseProverCommand._prover
nltk.inference.api.BaseProverCommand.html#_prover
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The theorem tool to execute with the assumptions
-
nltk.inference.api.BaseProverCommand._proof
nltk.inference.api.BaseProverCommand.html#_proof
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.BaseProverCommand.prove
nltk.inference.api.BaseProverCommand.html#prove
ZopeInterfaceFunction
Method
VISIBLE
Perform the actual proof. Store the result to prevent unnecessary re-proving.
-
nltk.inference.api.BaseProverCommand._result
nltk.inference.api.BaseProverCommand.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A holder for the result, to prevent unnecessary re-proving
-
nltk.inference.api.BaseProverCommand.proof
nltk.inference.api.BaseProverCommand.html#proof
ZopeInterfaceFunction
Method
VISIBLE
Return the proof string :param simplify: bool simplify the proof? :return: str
-
nltk.inference.api.BaseProverCommand.decorate_proof
nltk.inference.api.BaseProverCommand.html#decorate_proof
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.api.BaseProverCommand.get_prover
nltk.inference.api.BaseProverCommand.html#get_prover
ZopeInterfaceFunction
Method
VISIBLE
Return the prover object :return: Prover
-
nltk.inference.api.BaseModelBuilderCommand
nltk.inference.api.BaseModelBuilderCommand.html
ZopeInterfaceClass
Class
VISIBLE
This class holds a ModelBuilder, a goal, and a list of assumptions. When build_model() is called, the ModelBuilder is executed with the goal and assumptions.
-
nltk.inference.api.BaseModelBuilderCommand.__init__
nltk.inference.api.BaseModelBuilderCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.api.BaseModelBuilderCommand._modelbuilder
nltk.inference.api.BaseModelBuilderCommand.html#_modelbuilder
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The theorem tool to execute with the assumptions
-
nltk.inference.api.BaseModelBuilderCommand._model
nltk.inference.api.BaseModelBuilderCommand.html#_model
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.BaseModelBuilderCommand.build_model
nltk.inference.api.BaseModelBuilderCommand.html#build_model
ZopeInterfaceFunction
Method
VISIBLE
Attempt to build a model. Store the result to prevent unnecessary re-building.
-
nltk.inference.api.BaseModelBuilderCommand._result
nltk.inference.api.BaseModelBuilderCommand.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A holder for the result, to prevent unnecessary re-proving
-
nltk.inference.api.BaseModelBuilderCommand.model
nltk.inference.api.BaseModelBuilderCommand.html#model
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of the model
-
nltk.inference.api.BaseModelBuilderCommand._decorate_model
nltk.inference.api.BaseModelBuilderCommand.html#_decorate_model
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.inference.api.BaseModelBuilderCommand.get_model_builder
nltk.inference.api.BaseModelBuilderCommand.html#get_model_builder
ZopeInterfaceFunction
Method
VISIBLE
Return the model builder object :return: ModelBuilder
-
nltk.inference.api.TheoremToolCommandDecorator
nltk.inference.api.TheoremToolCommandDecorator.html
ZopeInterfaceClass
Class
VISIBLE
A base decorator for the ProverCommandDecorator and ModelBuilderCommandDecorator classes from which decorators can extend.
-
nltk.inference.api.TheoremToolCommandDecorator.__init__
nltk.inference.api.TheoremToolCommandDecorator.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.api.TheoremToolCommandDecorator._command
nltk.inference.api.TheoremToolCommandDecorator.html#_command
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.TheoremToolCommandDecorator._result
nltk.inference.api.TheoremToolCommandDecorator.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.TheoremToolCommandDecorator.assumptions
nltk.inference.api.TheoremToolCommandDecorator.html#assumptions
ZopeInterfaceFunction
Method
VISIBLE
List the current assumptions.
-
nltk.inference.api.TheoremToolCommandDecorator.goal
nltk.inference.api.TheoremToolCommandDecorator.html#goal
ZopeInterfaceFunction
Method
VISIBLE
Return the goal
-
nltk.inference.api.TheoremToolCommandDecorator.add_assumptions
nltk.inference.api.TheoremToolCommandDecorator.html#add_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Add new assumptions to the assumption list.
-
nltk.inference.api.TheoremToolCommandDecorator.retract_assumptions
nltk.inference.api.TheoremToolCommandDecorator.html#retract_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Retract assumptions from the assumption list.
-
nltk.inference.api.TheoremToolCommandDecorator.print_assumptions
nltk.inference.api.TheoremToolCommandDecorator.html#print_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Print the list of the current assumptions.
-
nltk.inference.api.ProverCommandDecorator
nltk.inference.api.ProverCommandDecorator.html
ZopeInterfaceClass
Class
VISIBLE
A base decorator for the ProverCommand class from which other prover command decorators can extend.
-
nltk.inference.api.ProverCommandDecorator.__init__
nltk.inference.api.ProverCommandDecorator.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.api.ProverCommandDecorator._proof
nltk.inference.api.ProverCommandDecorator.html#_proof
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.ProverCommandDecorator.prove
nltk.inference.api.ProverCommandDecorator.html#prove
ZopeInterfaceFunction
Method
VISIBLE
Perform the actual proof.
-
nltk.inference.api.ProverCommandDecorator._result
nltk.inference.api.ProverCommandDecorator.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.ProverCommandDecorator.proof
nltk.inference.api.ProverCommandDecorator.html#proof
ZopeInterfaceFunction
Method
VISIBLE
Return the proof string :param simplify: bool simplify the proof? :return: str
-
nltk.inference.api.ProverCommandDecorator.decorate_proof
nltk.inference.api.ProverCommandDecorator.html#decorate_proof
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.api.ProverCommandDecorator.get_prover
nltk.inference.api.ProverCommandDecorator.html#get_prover
ZopeInterfaceFunction
Method
VISIBLE
Return the prover object :return: Prover
-
nltk.inference.api.ModelBuilderCommandDecorator
nltk.inference.api.ModelBuilderCommandDecorator.html
ZopeInterfaceClass
Class
VISIBLE
A base decorator for the ModelBuilderCommand class from which other prover command decorators can extend.
-
nltk.inference.api.ModelBuilderCommandDecorator.__init__
nltk.inference.api.ModelBuilderCommandDecorator.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.api.ModelBuilderCommandDecorator._model
nltk.inference.api.ModelBuilderCommandDecorator.html#_model
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.ModelBuilderCommandDecorator.build_model
nltk.inference.api.ModelBuilderCommandDecorator.html#build_model
ZopeInterfaceFunction
Method
VISIBLE
Attempt to build a model. Store the result to prevent unnecessary re-building.
-
nltk.inference.api.ModelBuilderCommandDecorator._result
nltk.inference.api.ModelBuilderCommandDecorator.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.ModelBuilderCommandDecorator.model
nltk.inference.api.ModelBuilderCommandDecorator.html#model
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of the model
-
nltk.inference.api.ModelBuilderCommandDecorator._decorate_model
nltk.inference.api.ModelBuilderCommandDecorator.html#_decorate_model
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.inference.api.ModelBuilderCommandDecorator.get_model_builder
nltk.inference.api.ModelBuilderCommandDecorator.html#get_model_builder
ZopeInterfaceFunction
Method
VISIBLE
Return the model builder object :return: ModelBuilder
-
nltk.inference.api.ParallelProverBuilder
nltk.inference.api.ParallelProverBuilder.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.inference.api.ParallelProverBuilder.__init__
nltk.inference.api.ParallelProverBuilder.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.api.ParallelProverBuilder._prover
nltk.inference.api.ParallelProverBuilder.html#_prover
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.ParallelProverBuilder._modelbuilder
nltk.inference.api.ParallelProverBuilder.html#_modelbuilder
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.ParallelProverBuilder._prove
nltk.inference.api.ParallelProverBuilder.html#_prove
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.inference.api.ParallelProverBuilder._build_model
nltk.inference.api.ParallelProverBuilder.html#_build_model
ZopeInterfaceFunction
Method
PRIVATE
Perform the actual model building. :return: Whether a model was generated, and the model itself :rtype: tuple(bool, sem.Valuation)
-
nltk.inference.api.ParallelProverBuilder._run
nltk.inference.api.ParallelProverBuilder.html#_run
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.api.ParallelProverBuilderCommand
nltk.inference.api.ParallelProverBuilderCommand.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.inference.api.ParallelProverBuilderCommand.__init__
nltk.inference.api.ParallelProverBuilderCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.api.ParallelProverBuilderCommand.prove
nltk.inference.api.ParallelProverBuilderCommand.html#prove
ZopeInterfaceFunction
Method
VISIBLE
Perform the actual proof. Store the result to prevent unnecessary re-proving.
-
nltk.inference.api.ParallelProverBuilderCommand.build_model
nltk.inference.api.ParallelProverBuilderCommand.html#build_model
ZopeInterfaceFunction
Method
VISIBLE
Attempt to build a model. Store the result to prevent unnecessary re-building.
-
nltk.inference.api.ParallelProverBuilderCommand._run
nltk.inference.api.ParallelProverBuilderCommand.html#_run
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.api.ParallelProverBuilderCommand._result
nltk.inference.api.ParallelProverBuilderCommand.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A holder for the result, to prevent unnecessary re-proving
-
nltk.inference.api.TheoremToolThread
nltk.inference.api.TheoremToolThread.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.api.TheoremToolThread.__init__
nltk.inference.api.TheoremToolThread.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.api.TheoremToolThread._command
nltk.inference.api.TheoremToolThread.html#_command
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.TheoremToolThread._result
nltk.inference.api.TheoremToolThread.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.TheoremToolThread._verbose
nltk.inference.api.TheoremToolThread.html#_verbose
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.TheoremToolThread._name
nltk.inference.api.TheoremToolThread.html#_name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.api.TheoremToolThread.run
nltk.inference.api.TheoremToolThread.html#run
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.api.TheoremToolThread.result
nltk.inference.api.TheoremToolThread.html#result
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.inference.prover9.p9_return_codes
nltk.inference.prover9.html#p9_return_codes
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.inference.prover9.Prover9CommandParent
nltk.inference.prover9.Prover9CommandParent.html
ZopeInterfaceClass
Class
VISIBLE
A common base class used by both Prover9Command and MaceCommand, which is responsible for maintaining a goal and a set of assumptions, and generating prover9-style input files from them.
-
nltk.inference.prover9.Prover9CommandParent.print_assumptions
nltk.inference.prover9.Prover9CommandParent.html#print_assumptions
ZopeInterfaceFunction
Method
VISIBLE
Print the list of the current assumptions.
-
nltk.inference.prover9.Prover9Command
nltk.inference.prover9.Prover9Command.html
ZopeInterfaceClass
Class
VISIBLE
A ProverCommand specific to the Prover9 prover. It contains the a print_assumptions() method that is used to print the list of assumptions in multiple formats.
-
nltk.inference.prover9.Prover9Command.__init__
nltk.inference.prover9.Prover9Command.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.prover9.Prover9Command.decorate_proof
nltk.inference.prover9.Prover9Command.html#decorate_proof
ZopeInterfaceFunction
Method
VISIBLE
:see BaseProverCommand.decorate_proof()
-
nltk.inference.prover9.Prover9Parent
nltk.inference.prover9.Prover9Parent.html
ZopeInterfaceClass
Class
VISIBLE
A common class extended by both Prover9 and Mace <mace.Mace>. It contains the functionality required to convert NLTK-style expressions into Prover9-style expressions.
-
nltk.inference.prover9.Prover9Parent._binary_location
nltk.inference.prover9.Prover9Parent.html#_binary_location
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.prover9.Prover9Parent.config_prover9
nltk.inference.prover9.Prover9Parent.html#config_prover9
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.prover9.Prover9Parent._prover9_bin
nltk.inference.prover9.Prover9Parent.html#_prover9_bin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.prover9.Prover9Parent.prover9_input
nltk.inference.prover9.Prover9Parent.html#prover9_input
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.prover9.Prover9Parent.binary_locations
nltk.inference.prover9.Prover9Parent.html#binary_locations
ZopeInterfaceFunction
Method
VISIBLE
A list of directories that should be searched for the prover9 executables. This list is used by config_prover9 when searching for the prover9 executables.
-
nltk.inference.prover9.Prover9Parent._find_binary
nltk.inference.prover9.Prover9Parent.html#_find_binary
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.prover9.Prover9Parent._call
nltk.inference.prover9.Prover9Parent.html#_call
ZopeInterfaceFunction
Method
PRIVATE
Call the binary with the given input.
-
nltk.inference.prover9.convert_to_prover9
nltk.inference.prover9.html#convert_to_prover9
ZopeInterfaceFunction
Function
VISIBLE
Convert a logic.Expression to Prover9 format.
-
nltk.inference.prover9._convert_to_prover9
nltk.inference.prover9.html#_convert_to_prover9
ZopeInterfaceFunction
Function
PRIVATE
Convert logic.Expression to Prover9 formatted string.
-
nltk.inference.prover9.Prover9
nltk.inference.prover9.Prover9.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/3 instance variable, 4/5 methods documented
-
nltk.inference.prover9.Prover9._prover9_bin
nltk.inference.prover9.Prover9.html#_prover9_bin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.prover9.Prover9._prooftrans_bin
nltk.inference.prover9.Prover9.html#_prooftrans_bin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.prover9.Prover9.__init__
nltk.inference.prover9.Prover9.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.prover9.Prover9._timeout
nltk.inference.prover9.Prover9.html#_timeout
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The timeout value for prover9. If a proof can not be found in this amount of time, then prover9 will return false. (Use 0 for no timeout.)
-
nltk.inference.prover9.Prover9._prove
nltk.inference.prover9.Prover9.html#_prove
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.inference.prover9.Prover9.prover9_input
nltk.inference.prover9.Prover9.html#prover9_input
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.prover9.Prover9._call_prover9
nltk.inference.prover9.Prover9.html#_call_prover9
ZopeInterfaceFunction
Method
PRIVATE
Call the prover9 binary with the given input.
-
nltk.inference.prover9.Prover9._call_prooftrans
nltk.inference.prover9.Prover9.html#_call_prooftrans
ZopeInterfaceFunction
Method
PRIVATE
Call the prooftrans binary with the given input.
-
nltk.inference.prover9.Prover9Exception
nltk.inference.prover9.Prover9Exception.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.prover9.Prover9Exception.__init__
nltk.inference.prover9.Prover9Exception.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.prover9.Prover9FatalException
nltk.inference.prover9.Prover9FatalException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.prover9.Prover9LimitExceededException
nltk.inference.prover9.Prover9LimitExceededException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.prover9.test_config
nltk.inference.prover9.html#test_config
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.prover9.test_convert_to_prover9
nltk.inference.prover9.html#test_convert_to_prover9
ZopeInterfaceFunction
Function
VISIBLE
Test that parsing works OK.
-
nltk.inference.prover9.test_prove
nltk.inference.prover9.html#test_prove
ZopeInterfaceFunction
Function
VISIBLE
Try some proofs and exhibit the results.
-
nltk.inference.prover9.arguments
nltk.inference.prover9.html#arguments
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.inference.prover9.expressions
nltk.inference.prover9.html#expressions
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.inference.prover9.spacer
nltk.inference.prover9.html#spacer
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.prover9.demo
nltk.inference.prover9.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.mace.MaceCommand
nltk.inference.mace.MaceCommand.html
ZopeInterfaceClass
Class
VISIBLE
A MaceCommand specific to the Mace model builder. It contains a print_assumptions() method that is used to print the list of assumptions in multiple formats.
-
nltk.inference.mace.MaceCommand._interpformat_bin
nltk.inference.mace.MaceCommand.html#_interpformat_bin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.mace.MaceCommand.__init__
nltk.inference.mace.MaceCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.mace.MaceCommand.valuation
nltk.inference.mace.MaceCommand.html#valuation
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.inference.mace.MaceCommand._convert2val
nltk.inference.mace.MaceCommand.html#_convert2val
ZopeInterfaceFunction
Method
PRIVATE
Transform the output file into an NLTK-style Valuation.
-
nltk.inference.mace.MaceCommand._make_relation_set
nltk.inference.mace.MaceCommand.html#_make_relation_set
ZopeInterfaceFunction
Static Method
PRIVATE
Convert a Mace4-style relation table into a dictionary.
-
nltk.inference.mace.MaceCommand._make_relation_tuple
nltk.inference.mace.MaceCommand.html#_make_relation_tuple
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.inference.mace.MaceCommand._make_model_var
nltk.inference.mace.MaceCommand.html#_make_model_var
ZopeInterfaceFunction
Static Method
PRIVATE
Pick an alphabetic character as identifier for an entity in the model.
-
nltk.inference.mace.MaceCommand._decorate_model
nltk.inference.mace.MaceCommand.html#_decorate_model
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.inference.mace.MaceCommand._transform_output
nltk.inference.mace.MaceCommand.html#_transform_output
ZopeInterfaceFunction
Method
PRIVATE
Transform the output file into any Mace4 interpformat format.
-
nltk.inference.mace.MaceCommand._call_interpformat
nltk.inference.mace.MaceCommand.html#_call_interpformat
ZopeInterfaceFunction
Method
PRIVATE
Call the interpformat binary with the given input.
-
nltk.inference.mace.Mace
nltk.inference.mace.Mace.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/2 instance variable, 2/3 methods documented
-
nltk.inference.mace.Mace._mace4_bin
nltk.inference.mace.Mace.html#_mace4_bin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.mace.Mace.__init__
nltk.inference.mace.Mace.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.mace.Mace._end_size
nltk.inference.mace.Mace.html#_end_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The maximum model size that Mace will try before simply returning false. (Use -1 for no maximum.)
-
nltk.inference.mace.Mace._build_model
nltk.inference.mace.Mace.html#_build_model
ZopeInterfaceFunction
Method
PRIVATE
Use Mace4 to build a first order model.
-
nltk.inference.mace.Mace._call_mace4
nltk.inference.mace.Mace.html#_call_mace4
ZopeInterfaceFunction
Method
PRIVATE
Call the mace4 binary with the given input.
-
nltk.inference.mace.spacer
nltk.inference.mace.html#spacer
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.mace.decode_result
nltk.inference.mace.html#decode_result
ZopeInterfaceFunction
Function
VISIBLE
Decode the result of model_found()
-
nltk.inference.mace.test_model_found
nltk.inference.mace.html#test_model_found
ZopeInterfaceFunction
Function
VISIBLE
Try some proofs and exhibit the results.
-
nltk.inference.mace.test_build_model
nltk.inference.mace.html#test_build_model
ZopeInterfaceFunction
Function
VISIBLE
Try to build a nltk.sem.Valuation.
-
nltk.inference.mace.test_transform_output
nltk.inference.mace.html#test_transform_output
ZopeInterfaceFunction
Function
VISIBLE
Transform the model into various Mace4 interpformat formats.
-
nltk.inference.mace.test_make_relation_set
nltk.inference.mace.html#test_make_relation_set
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.mace.arguments
nltk.inference.mace.html#arguments
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.inference.mace.demo
nltk.inference.mace.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.resolution.ProverParseError
nltk.inference.resolution.ProverParseError.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.resolution.ResolutionProver
nltk.inference.resolution.ResolutionProver.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 class variable, 1/2 method documented
-
nltk.inference.resolution.ResolutionProver.ANSWER_KEY
nltk.inference.resolution.ResolutionProver.html#ANSWER_KEY
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.resolution.ResolutionProver._assume_false
nltk.inference.resolution.ResolutionProver.html#_assume_false
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.inference.resolution.ResolutionProver._prove
nltk.inference.resolution.ResolutionProver.html#_prove
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.inference.resolution.ResolutionProver._attempt_proof
nltk.inference.resolution.ResolutionProver.html#_attempt_proof
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.resolution.ResolutionProverCommand
nltk.inference.resolution.ResolutionProverCommand.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 2/3 methods, 1/1 static method documented
-
nltk.inference.resolution.ResolutionProverCommand.__init__
nltk.inference.resolution.ResolutionProverCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.resolution.ResolutionProverCommand._clauses
nltk.inference.resolution.ResolutionProverCommand.html#_clauses
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.resolution.ResolutionProverCommand.prove
nltk.inference.resolution.ResolutionProverCommand.html#prove
ZopeInterfaceFunction
Method
VISIBLE
Perform the actual proof. Store the result to prevent unnecessary re-proving.
-
nltk.inference.resolution.ResolutionProverCommand._result
nltk.inference.resolution.ResolutionProverCommand.html#_result
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A holder for the result, to prevent unnecessary re-proving
-
nltk.inference.resolution.ResolutionProverCommand._proof
nltk.inference.resolution.ResolutionProverCommand.html#_proof
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.resolution.ResolutionProverCommand.find_answers
nltk.inference.resolution.ResolutionProverCommand.html#find_answers
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.ResolutionProverCommand._decorate_clauses
nltk.inference.resolution.ResolutionProverCommand.html#_decorate_clauses
ZopeInterfaceFunction
Static Method
PRIVATE
Decorate the proof output.
-
nltk.inference.resolution.Clause
nltk.inference.resolution.Clause.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 instance variable, 6/13 methods documented
-
nltk.inference.resolution.Clause.__init__
nltk.inference.resolution.Clause.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.Clause._is_tautology
nltk.inference.resolution.Clause.html#_is_tautology
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.resolution.Clause._parents
nltk.inference.resolution.Clause.html#_parents
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.resolution.Clause.unify
nltk.inference.resolution.Clause.html#unify
ZopeInterfaceFunction
Method
VISIBLE
Attempt to unify this Clause with the other, returning a list of resulting, unified, Clauses.
-
nltk.inference.resolution.Clause.isSubsetOf
nltk.inference.resolution.Clause.html#isSubsetOf
ZopeInterfaceFunction
Method
VISIBLE
Return True iff every term in 'self' is a term in 'other'.
-
nltk.inference.resolution.Clause.subsumes
nltk.inference.resolution.Clause.html#subsumes
ZopeInterfaceFunction
Method
VISIBLE
Return True iff 'self' subsumes 'other', this is, if there is a substitution such that every term in 'self' can be unified with a term in 'other'.
-
nltk.inference.resolution.Clause.__getslice__
nltk.inference.resolution.Clause.html#__getslice__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.Clause.__sub__
nltk.inference.resolution.Clause.html#__sub__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.Clause.__add__
nltk.inference.resolution.Clause.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.Clause.is_tautology
nltk.inference.resolution.Clause.html#is_tautology
ZopeInterfaceFunction
Method
VISIBLE
Self is a tautology if it contains ground terms P and -P. The ground term, P, must be an exact match, ie, not using unification.
-
nltk.inference.resolution.Clause.free
nltk.inference.resolution.Clause.html#free
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.Clause.replace
nltk.inference.resolution.Clause.html#replace
ZopeInterfaceFunction
Method
VISIBLE
Replace every instance of variable with expression across every atom in the clause
-
nltk.inference.resolution.Clause.substitute_bindings
nltk.inference.resolution.Clause.html#substitute_bindings
ZopeInterfaceFunction
Method
VISIBLE
Replace every binding
-
nltk.inference.resolution.Clause.__str__
nltk.inference.resolution.Clause.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.Clause.__repr__
nltk.inference.resolution.Clause.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution._iterate_first
nltk.inference.resolution.html#_iterate_first
ZopeInterfaceFunction
Function
PRIVATE
This method facilitates movement through the terms of 'self'
-
nltk.inference.resolution._iterate_second
nltk.inference.resolution.html#_iterate_second
ZopeInterfaceFunction
Function
PRIVATE
This method facilitates movement through the terms of 'other'
-
nltk.inference.resolution._unify_terms
nltk.inference.resolution.html#_unify_terms
ZopeInterfaceFunction
Function
PRIVATE
This method attempts to unify two terms. Two expressions are unifiable if there exists a substitution function S such that S(a) == S(-b).
-
nltk.inference.resolution._complete_unify_path
nltk.inference.resolution.html#_complete_unify_path
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.inference.resolution._subsumes_finalize
nltk.inference.resolution.html#_subsumes_finalize
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.inference.resolution.clausify
nltk.inference.resolution.html#clausify
ZopeInterfaceFunction
Function
VISIBLE
Skolemize, clausify, and standardize the variables apart.
-
nltk.inference.resolution._clausify
nltk.inference.resolution.html#_clausify
ZopeInterfaceFunction
Function
PRIVATE
-
nltk.inference.resolution.BindingDict
nltk.inference.resolution.BindingDict.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 4/8 methods documented
-
nltk.inference.resolution.BindingDict.__init__
nltk.inference.resolution.BindingDict.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.resolution.BindingDict.d
nltk.inference.resolution.BindingDict.html#d
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.resolution.BindingDict.__setitem__
nltk.inference.resolution.BindingDict.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
A binding is consistent with the dict if its variable is not already bound, OR if its variable is already bound to its argument.
-
nltk.inference.resolution.BindingDict.__getitem__
nltk.inference.resolution.BindingDict.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Return the expression to which 'variable' is bound
-
nltk.inference.resolution.BindingDict.__contains__
nltk.inference.resolution.BindingDict.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.BindingDict.__add__
nltk.inference.resolution.BindingDict.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.resolution.BindingDict.__len__
nltk.inference.resolution.BindingDict.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.BindingDict.__str__
nltk.inference.resolution.BindingDict.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.BindingDict.__repr__
nltk.inference.resolution.BindingDict.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.most_general_unification
nltk.inference.resolution.html#most_general_unification
ZopeInterfaceFunction
Function
VISIBLE
Find the most general unification of the two given expressions
-
nltk.inference.resolution._mgu_var
nltk.inference.resolution.html#_mgu_var
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.inference.resolution.BindingException
nltk.inference.resolution.BindingException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.resolution.BindingException.__init__
nltk.inference.resolution.BindingException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.UnificationException
nltk.inference.resolution.UnificationException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.resolution.UnificationException.__init__
nltk.inference.resolution.UnificationException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.DebugObject
nltk.inference.resolution.DebugObject.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.resolution.DebugObject.__init__
nltk.inference.resolution.DebugObject.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.DebugObject.enabled
nltk.inference.resolution.DebugObject.html#enabled
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.resolution.DebugObject.indent
nltk.inference.resolution.DebugObject.html#indent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.resolution.DebugObject.__add__
nltk.inference.resolution.DebugObject.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.DebugObject.line
nltk.inference.resolution.DebugObject.html#line
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.resolution.testResolutionProver
nltk.inference.resolution.html#testResolutionProver
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.resolution.resolution_test
nltk.inference.resolution.html#resolution_test
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.resolution.test_clausify
nltk.inference.resolution.html#test_clausify
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.resolution.demo
nltk.inference.resolution.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.tableau._counter
nltk.inference.tableau.html#_counter
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.inference.tableau.ProverParseError
nltk.inference.tableau.ProverParseError.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.tableau.TableauProver
nltk.inference.tableau.TableauProver.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.tableau.TableauProver._assume_false
nltk.inference.tableau.TableauProver.html#_assume_false
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._prove
nltk.inference.tableau.TableauProver.html#_prove
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.inference.tableau.TableauProver._attempt_proof
nltk.inference.tableau.TableauProver.html#_attempt_proof
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_atom
nltk.inference.tableau.TableauProver.html#_attempt_proof_atom
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_atom
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_atom
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_prop
nltk.inference.tableau.TableauProver.html#_attempt_proof_prop
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_prop
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_prop
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_app
nltk.inference.tableau.TableauProver.html#_attempt_proof_app
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_app
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_app
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_eq
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_eq
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_d_neg
nltk.inference.tableau.TableauProver.html#_attempt_proof_d_neg
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_all
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_all
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_some
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_some
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_and
nltk.inference.tableau.TableauProver.html#_attempt_proof_and
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_or
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_or
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_imp
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_imp
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_or
nltk.inference.tableau.TableauProver.html#_attempt_proof_or
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_imp
nltk.inference.tableau.TableauProver.html#_attempt_proof_imp
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_and
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_and
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_iff
nltk.inference.tableau.TableauProver.html#_attempt_proof_iff
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_n_iff
nltk.inference.tableau.TableauProver.html#_attempt_proof_n_iff
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_eq
nltk.inference.tableau.TableauProver.html#_attempt_proof_eq
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_some
nltk.inference.tableau.TableauProver.html#_attempt_proof_some
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver._attempt_proof_all
nltk.inference.tableau.TableauProver.html#_attempt_proof_all
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.TableauProver.is_atom
nltk.inference.tableau.TableauProver.html#is_atom
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.inference.tableau.TableauProverCommand
nltk.inference.tableau.TableauProverCommand.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 method documented
-
nltk.inference.tableau.TableauProverCommand.__init__
nltk.inference.tableau.TableauProverCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.tableau.Agenda
nltk.inference.tableau.Agenda.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 1/12 method documented
-
nltk.inference.tableau.Agenda.__init__
nltk.inference.tableau.Agenda.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.sets
nltk.inference.tableau.Agenda.html#sets
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.clone
nltk.inference.tableau.Agenda.html#clone
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.__getitem__
nltk.inference.tableau.Agenda.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.put
nltk.inference.tableau.Agenda.html#put
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.put_all
nltk.inference.tableau.Agenda.html#put_all
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.put_atoms
nltk.inference.tableau.Agenda.html#put_atoms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.pop_first
nltk.inference.tableau.Agenda.html#pop_first
ZopeInterfaceFunction
Method
VISIBLE
Pop the first expression that appears in the agenda
-
nltk.inference.tableau.Agenda.replace_all
nltk.inference.tableau.Agenda.html#replace_all
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.mark_alls_fresh
nltk.inference.tableau.Agenda.html#mark_alls_fresh
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda.mark_neqs_fresh
nltk.inference.tableau.Agenda.html#mark_neqs_fresh
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Agenda._categorize_expression
nltk.inference.tableau.Agenda.html#_categorize_expression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.Agenda._categorize_NegatedExpression
nltk.inference.tableau.Agenda.html#_categorize_NegatedExpression
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.tableau.Debug
nltk.inference.tableau.Debug.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.tableau.Debug.__init__
nltk.inference.tableau.Debug.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Debug.verbose
nltk.inference.tableau.Debug.html#verbose
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Debug.indent
nltk.inference.tableau.Debug.html#indent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Debug.lines
nltk.inference.tableau.Debug.html#lines
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Debug.__add__
nltk.inference.tableau.Debug.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Debug.line
nltk.inference.tableau.Debug.html#line
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories
nltk.inference.tableau.Categories.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.ATOM
nltk.inference.tableau.Categories.html#ATOM
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.PROP
nltk.inference.tableau.Categories.html#PROP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_ATOM
nltk.inference.tableau.Categories.html#N_ATOM
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_PROP
nltk.inference.tableau.Categories.html#N_PROP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.APP
nltk.inference.tableau.Categories.html#APP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_APP
nltk.inference.tableau.Categories.html#N_APP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_EQ
nltk.inference.tableau.Categories.html#N_EQ
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.D_NEG
nltk.inference.tableau.Categories.html#D_NEG
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_ALL
nltk.inference.tableau.Categories.html#N_ALL
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_EXISTS
nltk.inference.tableau.Categories.html#N_EXISTS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.AND
nltk.inference.tableau.Categories.html#AND
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_OR
nltk.inference.tableau.Categories.html#N_OR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_IMP
nltk.inference.tableau.Categories.html#N_IMP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.OR
nltk.inference.tableau.Categories.html#OR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.IMP
nltk.inference.tableau.Categories.html#IMP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_AND
nltk.inference.tableau.Categories.html#N_AND
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.IFF
nltk.inference.tableau.Categories.html#IFF
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.N_IFF
nltk.inference.tableau.Categories.html#N_IFF
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.EQ
nltk.inference.tableau.Categories.html#EQ
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.EXISTS
nltk.inference.tableau.Categories.html#EXISTS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.Categories.ALL
nltk.inference.tableau.Categories.html#ALL
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.inference.tableau.testTableauProver
nltk.inference.tableau.html#testTableauProver
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.tableau.testHigherOrderTableauProver
nltk.inference.tableau.html#testHigherOrderTableauProver
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.tableau.tableau_test
nltk.inference.tableau.html#tableau_test
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.tableau.demo
nltk.inference.tableau.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.sequential.SequentialBackoffTagger
nltk.tag.sequential.SequentialBackoffTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.sequential.SequentialBackoffTagger._taggers
nltk.tag.sequential.SequentialBackoffTagger.html#_taggers
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of all the taggers that should be tried to
tag a token (i.e., self and its backoff taggers).
-
nltk.tag.sequential.SequentialBackoffTagger.__init__
nltk.tag.sequential.SequentialBackoffTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.SequentialBackoffTagger.backoff
nltk.tag.sequential.SequentialBackoffTagger.html#backoff
ZopeInterfaceAttribute
Property
VISIBLE
The backoff tagger for this tagger.
-
nltk.tag.sequential.SequentialBackoffTagger.tag
nltk.tag.sequential.SequentialBackoffTagger.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Determine the most appropriate tag sequence for the given token sequence, and return a corresponding list of tagged tokens. A tagged token is encoded as a tuple (token, tag).
-
nltk.tag.sequential.SequentialBackoffTagger.tag_one
nltk.tag.sequential.SequentialBackoffTagger.html#tag_one
ZopeInterfaceFunction
Method
VISIBLE
Determine an appropriate tag for the specified token, and return that tag. If this tagger is unable to determine a tag for the specified token, then its backoff tagger is consulted.
-
nltk.tag.sequential.SequentialBackoffTagger.choose_tag
nltk.tag.sequential.SequentialBackoffTagger.html#choose_tag
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.ContextTagger
nltk.tag.sequential.ContextTagger.html
ZopeInterfaceClass
Class
VISIBLE
An abstract base class for sequential backoff taggers that choose a tag for a token based on the value of its "context". Different subclasses are used to define different contexts.
-
nltk.tag.sequential.ContextTagger._context_to_tag
nltk.tag.sequential.ContextTagger.html#_context_to_tag
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Dictionary mapping contexts to tags.
-
nltk.tag.sequential.ContextTagger.__init__
nltk.tag.sequential.ContextTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.sequential.ContextTagger.context
nltk.tag.sequential.ContextTagger.html#context
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.ContextTagger.choose_tag
nltk.tag.sequential.ContextTagger.html#choose_tag
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.ContextTagger.size
nltk.tag.sequential.ContextTagger.html#size
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.sequential.ContextTagger.__repr__
nltk.tag.sequential.ContextTagger.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.ContextTagger._train
nltk.tag.sequential.ContextTagger.html#_train
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tag.sequential.DefaultTagger
nltk.tag.sequential.DefaultTagger.html
ZopeInterfaceClass
Class
VISIBLE
A tagger that assigns the same tag to every token.
-
nltk.tag.sequential.DefaultTagger.json_tag
nltk.tag.sequential.DefaultTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.sequential.DefaultTagger.__init__
nltk.tag.sequential.DefaultTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.DefaultTagger._tag
nltk.tag.sequential.DefaultTagger.html#_tag
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.sequential.DefaultTagger.encode_json_obj
nltk.tag.sequential.DefaultTagger.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.DefaultTagger.decode_json_obj
nltk.tag.sequential.DefaultTagger.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tag.sequential.DefaultTagger.choose_tag
nltk.tag.sequential.DefaultTagger.html#choose_tag
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.DefaultTagger.__repr__
nltk.tag.sequential.DefaultTagger.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.NgramTagger
nltk.tag.sequential.NgramTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.sequential.NgramTagger.json_tag
nltk.tag.sequential.NgramTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.sequential.NgramTagger.__init__
nltk.tag.sequential.NgramTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.sequential.NgramTagger._n
nltk.tag.sequential.NgramTagger.html#_n
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.sequential.NgramTagger.encode_json_obj
nltk.tag.sequential.NgramTagger.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.NgramTagger.decode_json_obj
nltk.tag.sequential.NgramTagger.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tag.sequential.NgramTagger.context
nltk.tag.sequential.NgramTagger.html#context
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.UnigramTagger
nltk.tag.sequential.UnigramTagger.html
ZopeInterfaceClass
Class
VISIBLE
Unigram Tagger
-
nltk.tag.sequential.UnigramTagger.json_tag
nltk.tag.sequential.UnigramTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.sequential.UnigramTagger.__init__
nltk.tag.sequential.UnigramTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.sequential.UnigramTagger.context
nltk.tag.sequential.UnigramTagger.html#context
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.BigramTagger
nltk.tag.sequential.BigramTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.sequential.BigramTagger.json_tag
nltk.tag.sequential.BigramTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.sequential.BigramTagger.__init__
nltk.tag.sequential.BigramTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.sequential.TrigramTagger
nltk.tag.sequential.TrigramTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.sequential.TrigramTagger.json_tag
nltk.tag.sequential.TrigramTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.sequential.TrigramTagger.__init__
nltk.tag.sequential.TrigramTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.sequential.AffixTagger
nltk.tag.sequential.AffixTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.sequential.AffixTagger.json_tag
nltk.tag.sequential.AffixTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.sequential.AffixTagger.__init__
nltk.tag.sequential.AffixTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.sequential.AffixTagger._affix_length
nltk.tag.sequential.AffixTagger.html#_affix_length
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.sequential.AffixTagger._min_word_length
nltk.tag.sequential.AffixTagger.html#_min_word_length
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.sequential.AffixTagger.encode_json_obj
nltk.tag.sequential.AffixTagger.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.AffixTagger.decode_json_obj
nltk.tag.sequential.AffixTagger.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tag.sequential.AffixTagger.context
nltk.tag.sequential.AffixTagger.html#context
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.RegexpTagger
nltk.tag.sequential.RegexpTagger.html
ZopeInterfaceClass
Class
VISIBLE
Regular Expression Tagger
-
nltk.tag.sequential.RegexpTagger.json_tag
nltk.tag.sequential.RegexpTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.sequential.RegexpTagger.__init__
nltk.tag.sequential.RegexpTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.sequential.RegexpTagger._regexps
nltk.tag.sequential.RegexpTagger.html#_regexps
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.sequential.RegexpTagger.encode_json_obj
nltk.tag.sequential.RegexpTagger.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.RegexpTagger.decode_json_obj
nltk.tag.sequential.RegexpTagger.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tag.sequential.RegexpTagger.choose_tag
nltk.tag.sequential.RegexpTagger.html#choose_tag
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.RegexpTagger.__repr__
nltk.tag.sequential.RegexpTagger.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.ClassifierBasedTagger
nltk.tag.sequential.ClassifierBasedTagger.html
ZopeInterfaceClass
Class
VISIBLE
A sequential tagger that uses a classifier to choose the tag for each token in a sentence. The featureset input for the classifier is generated by a feature detector function:
-
nltk.tag.sequential.ClassifierBasedTagger.__init__
nltk.tag.sequential.ClassifierBasedTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.ClassifierBasedTagger._feature_detector
nltk.tag.sequential.ClassifierBasedTagger.html#_feature_detector
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.sequential.ClassifierBasedTagger._cutoff_prob
nltk.tag.sequential.ClassifierBasedTagger.html#_cutoff_prob
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Cutoff probability for tagging -- if the probability of the most likely tag is less than this, then use backoff.
-
nltk.tag.sequential.ClassifierBasedTagger._classifier
nltk.tag.sequential.ClassifierBasedTagger.html#_classifier
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The classifier used to choose a tag for each token.
-
nltk.tag.sequential.ClassifierBasedTagger.choose_tag
nltk.tag.sequential.ClassifierBasedTagger.html#choose_tag
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.ClassifierBasedTagger._train
nltk.tag.sequential.ClassifierBasedTagger.html#_train
ZopeInterfaceFunction
Method
PRIVATE
Build a new classifier, based on the given training data tagged_corpus.
-
nltk.tag.sequential.ClassifierBasedTagger.__repr__
nltk.tag.sequential.ClassifierBasedTagger.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.sequential.ClassifierBasedTagger.feature_detector
nltk.tag.sequential.ClassifierBasedTagger.html#feature_detector
ZopeInterfaceFunction
Method
VISIBLE
Return the feature detector that this tagger uses to generate featuresets for its classifier. The feature detector is a function with the signature:
-
nltk.tag.sequential.ClassifierBasedTagger.classifier
nltk.tag.sequential.ClassifierBasedTagger.html#classifier
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.sequential.ClassifierBasedPOSTagger
nltk.tag.sequential.ClassifierBasedPOSTagger.html
ZopeInterfaceClass
Class
VISIBLE
A classifier based part of speech tagger.
-
nltk.tag.sequential.ClassifierBasedPOSTagger.feature_detector
nltk.tag.sequential.ClassifierBasedPOSTagger.html#feature_detector
ZopeInterfaceFunction
Method
VISIBLE
Return the feature detector that this tagger uses to generate featuresets for its classifier. The feature detector is a function with the signature:
-
nltk.tbl.feature.Feature
nltk.tbl.feature.Feature.html
ZopeInterfaceClass
Class
VISIBLE
An abstract base class for Features. A Feature is a combination of a specific property-computing method and a list of relative positions to apply that method to.
-
nltk.tbl.feature.Feature.json_tag
nltk.tbl.feature.Feature.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.PROPERTY_NAME
nltk.tbl.feature.Feature.html#PROPERTY_NAME
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.__init__
nltk.tbl.feature.Feature.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a Feature which may apply at C{positions}.
-
nltk.tbl.feature.Feature.positions
nltk.tbl.feature.Feature.html#positions
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.encode_json_obj
nltk.tbl.feature.Feature.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.decode_json_obj
nltk.tbl.feature.Feature.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.__repr__
nltk.tbl.feature.Feature.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.expand
nltk.tbl.feature.Feature.html#expand
ZopeInterfaceFunction
Class Method
VISIBLE
No summary
-
nltk.tbl.feature.Feature.issuperset
nltk.tbl.feature.Feature.html#issuperset
ZopeInterfaceFunction
Method
VISIBLE
Return True if this Feature always returns True when other does
-
nltk.tbl.feature.Feature.intersects
nltk.tbl.feature.Feature.html#intersects
ZopeInterfaceFunction
Method
VISIBLE
Return True if the positions of this Feature intersects with those of other
-
nltk.tbl.feature.Feature.__eq__
nltk.tbl.feature.Feature.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.__lt__
nltk.tbl.feature.Feature.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.__ne__
nltk.tbl.feature.Feature.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.__gt__
nltk.tbl.feature.Feature.html#__gt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.__ge__
nltk.tbl.feature.Feature.html#__ge__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.feature.Feature.__le__
nltk.tbl.feature.Feature.html#__le__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.TagRule
nltk.tbl.rule.TagRule.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tbl.rule.TagRule.__init__
nltk.tbl.rule.TagRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.TagRule.original_tag
nltk.tbl.rule.TagRule.html#original_tag
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The tag which this TagRule may cause to be replaced.
-
nltk.tbl.rule.TagRule.replacement_tag
nltk.tbl.rule.TagRule.html#replacement_tag
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The tag with which this TagRule may replace another tag.
-
nltk.tbl.rule.TagRule.apply
nltk.tbl.rule.TagRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tbl.rule.TagRule.applies
nltk.tbl.rule.TagRule.html#applies
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tbl.rule.TagRule.__eq__
nltk.tbl.rule.TagRule.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.TagRule.__ne__
nltk.tbl.rule.TagRule.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.TagRule.__hash__
nltk.tbl.rule.TagRule.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule
nltk.tbl.rule.Rule.html
ZopeInterfaceClass
Class
VISIBLE
A Rule checks the current corpus position for a certain set of conditions; if they are all fulfilled, the Rule is triggered, meaning that it will change tag A to tag B. For other tags than A, nothing happens.
-
nltk.tbl.rule.Rule.json_tag
nltk.tbl.rule.Rule.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.__init__
nltk.tbl.rule.Rule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Rule that changes a token's tag from C{original_tag} to C{replacement_tag} if all of the properties specified in C{conditions} hold.
-
nltk.tbl.rule.Rule._conditions
nltk.tbl.rule.Rule.html#_conditions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tbl.rule.Rule.templateid
nltk.tbl.rule.Rule.html#templateid
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.encode_json_obj
nltk.tbl.rule.Rule.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.decode_json_obj
nltk.tbl.rule.Rule.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.applies
nltk.tbl.rule.Rule.html#applies
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tbl.rule.Rule.__eq__
nltk.tbl.rule.Rule.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.__ne__
nltk.tbl.rule.Rule.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.__hash__
nltk.tbl.rule.Rule.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.__hash
nltk.tbl.rule.Rule.html#__hash
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tbl.rule.Rule.__repr__
nltk.tbl.rule.Rule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.__repr
nltk.tbl.rule.Rule.html#__repr
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tbl.rule.Rule.__str__
nltk.tbl.rule.Rule.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.rule.Rule.format
nltk.tbl.rule.Rule.html#format
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation of this rule.
-
nltk.tbl.rule.Rule._verbose_format
nltk.tbl.rule.Rule.html#_verbose_format
ZopeInterfaceFunction
Method
PRIVATE
Return a wordy, human-readable string representation of the given rule.
-
nltk.tbl.template.BrillTemplateI
nltk.tbl.template.BrillTemplateI.html
ZopeInterfaceClass
Class
VISIBLE
An interface for generating lists of transformational rules that apply at given sentence positions. BrillTemplateI is used by Brill training algorithms to generate candidate rules.
-
nltk.tbl.template.BrillTemplateI.applicable_rules
nltk.tbl.template.BrillTemplateI.html#applicable_rules
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tbl.template.BrillTemplateI.get_neighborhood
nltk.tbl.template.BrillTemplateI.html#get_neighborhood
ZopeInterfaceFunction
Method
VISIBLE
Returns the set of indices i such that applicable_rules(token, i, ...) depends on the value of the index*th token of *token.
-
nltk.tbl.template.Template
nltk.tbl.template.Template.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tbl.template.Template.ALLTEMPLATES
nltk.tbl.template.Template.html#ALLTEMPLATES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tbl.template.Template.__init__
nltk.tbl.template.Template.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a Template for generating Rules.
-
nltk.tbl.template.Template._features
nltk.tbl.template.Template.html#_features
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tbl.template.Template.id
nltk.tbl.template.Template.html#id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tbl.template.Template.__repr__
nltk.tbl.template.Template.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tbl.template.Template.applicable_rules
nltk.tbl.template.Template.html#applicable_rules
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tbl.template.Template._applicable_conditions
nltk.tbl.template.Template.html#_applicable_conditions
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.tbl.template.Template.get_neighborhood
nltk.tbl.template.Template.html#get_neighborhood
ZopeInterfaceFunction
Method
VISIBLE
Returns the set of indices i such that applicable_rules(token, i, ...) depends on the value of the index*th token of *token.
-
nltk.tbl.template.Template.expand
nltk.tbl.template.Template.html#expand
ZopeInterfaceFunction
Class Method
VISIBLE
Factory method to mass generate Templates from a list L of lists of Features.
-
nltk.tbl.template.Template._cleartemplates
nltk.tbl.template.Template.html#_cleartemplates
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.tbl.template.Template._poptemplate
nltk.tbl.template.Template.html#_poptemplate
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.tbl.erroranalysis.error_list
nltk.tbl.erroranalysis.html#error_list
ZopeInterfaceFunction
Function
VISIBLE
Returns a list of human-readable strings indicating the errors in the given tagging of the corpus.
-
nltk.tag.brill.Word
nltk.tag.brill.Word.html
ZopeInterfaceClass
Class
VISIBLE
Feature which examines the text (word) of nearby tokens.
-
nltk.tag.brill.Word.json_tag
nltk.tag.brill.Word.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.brill.Pos
nltk.tag.brill.Pos.html
ZopeInterfaceClass
Class
VISIBLE
Feature which examines the tags of nearby tokens.
-
nltk.tag.brill.Pos.json_tag
nltk.tag.brill.Pos.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.brill.nltkdemo18
nltk.tag.brill.html#nltkdemo18
ZopeInterfaceFunction
Function
VISIBLE
Return 18 templates, from the original nltk demo, in multi-feature syntax
-
nltk.tag.brill.nltkdemo18plus
nltk.tag.brill.html#nltkdemo18plus
ZopeInterfaceFunction
Function
VISIBLE
Return 18 templates, from the original nltk demo, and additionally a few multi-feature ones (the motivation is easy comparison with nltkdemo18)
-
nltk.tag.brill.fntbl37
nltk.tag.brill.html#fntbl37
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.tag.brill.brill24
nltk.tag.brill.html#brill24
ZopeInterfaceFunction
Function
VISIBLE
Return 24 templates of the seminal TBL paper, Brill (1995)
-
nltk.tag.brill.describe_template_sets
nltk.tag.brill.html#describe_template_sets
ZopeInterfaceFunction
Function
VISIBLE
Print the available template sets in this demo, with a short description"
-
nltk.tag.brill.BrillTagger
nltk.tag.brill.BrillTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.brill.BrillTagger.json_tag
nltk.tag.brill.BrillTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.brill.BrillTagger.__init__
nltk.tag.brill.BrillTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.brill.BrillTagger._initial_tagger
nltk.tag.brill.BrillTagger.html#_initial_tagger
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.brill.BrillTagger._rules
nltk.tag.brill.BrillTagger.html#_rules
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.brill.BrillTagger._training_stats
nltk.tag.brill.BrillTagger.html#_training_stats
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.brill.BrillTagger.encode_json_obj
nltk.tag.brill.BrillTagger.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.brill.BrillTagger.decode_json_obj
nltk.tag.brill.BrillTagger.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tag.brill.BrillTagger.rules
nltk.tag.brill.BrillTagger.html#rules
ZopeInterfaceFunction
Method
VISIBLE
Return the ordered list of transformation rules that this tagger has learnt
-
nltk.tag.brill.BrillTagger.train_stats
nltk.tag.brill.BrillTagger.html#train_stats
ZopeInterfaceFunction
Method
VISIBLE
Return a named statistic collected during training, or a dictionary of all available statistics if no name given
-
nltk.tag.brill.BrillTagger.tag
nltk.tag.brill.BrillTagger.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.brill.BrillTagger.print_template_statistics
nltk.tag.brill.BrillTagger.html#print_template_statistics
ZopeInterfaceFunction
Method
VISIBLE
Print a list of all templates, ranked according to efficiency.
-
nltk.tag.brill.BrillTagger.batch_tag_incremental
nltk.tag.brill.BrillTagger.html#batch_tag_incremental
ZopeInterfaceFunction
Method
VISIBLE
Tags by applying each rule to the entire corpus (rather than all rules to a single sequence). The point is to collect statistics on the test set for individual rules.
-
nltk.tag.brill_trainer.BrillTaggerTrainer
nltk.tag.brill_trainer.BrillTaggerTrainer.html
ZopeInterfaceClass
Class
VISIBLE
A trainer for tbl taggers.
-
nltk.tag.brill_trainer.BrillTaggerTrainer.__init__
nltk.tag.brill_trainer.BrillTaggerTrainer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a Brill tagger from a baseline tagger and a set of templates
-
nltk.tag.brill_trainer.BrillTaggerTrainer._initial_tagger
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_initial_tagger
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.brill_trainer.BrillTaggerTrainer._templates
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_templates
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.brill_trainer.BrillTaggerTrainer._trace
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.brill_trainer.BrillTaggerTrainer._deterministic
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_deterministic
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.brill_trainer.BrillTaggerTrainer._ruleformat
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_ruleformat
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.brill_trainer.BrillTaggerTrainer._tag_positions
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_tag_positions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Mapping from tags to lists of positions that use that tag.
-
nltk.tag.brill_trainer.BrillTaggerTrainer._rules_by_position
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_rules_by_position
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.tag.brill_trainer.BrillTaggerTrainer._positions_by_rule
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_positions_by_rule
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.tag.brill_trainer.BrillTaggerTrainer._rules_by_score
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_rules_by_score
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.tag.brill_trainer.BrillTaggerTrainer._rule_scores
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_rule_scores
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Mapping from rules to upper bounds on their effects on the overall score. This is the inverse mapping to _rules_by_score. Invariant: ruleScores[r] = sum(_positions_by_rule[r])
-
nltk.tag.brill_trainer.BrillTaggerTrainer._first_unknown_position
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_first_unknown_position
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Mapping from rules to the first position where we're unsure if the rule applies. This records the next position we need to check to see if the rule messed anything up.
-
nltk.tag.brill_trainer.BrillTaggerTrainer.train
nltk.tag.brill_trainer.BrillTaggerTrainer.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.brill_trainer.BrillTaggerTrainer._init_mappings
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_init_mappings
ZopeInterfaceFunction
Method
PRIVATE
Initialize the tag position mapping & the rule related mappings. For each error in test_sents, find new rules that would correct them, and add them to the rule mappings.
-
nltk.tag.brill_trainer.BrillTaggerTrainer._clean
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_clean
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.brill_trainer.BrillTaggerTrainer._find_rules
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_find_rules
ZopeInterfaceFunction
Method
PRIVATE
Use the templates to find rules that apply at index wordnum in the sentence sent and generate the tag new_tag.
-
nltk.tag.brill_trainer.BrillTaggerTrainer._update_rule_applies
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_update_rule_applies
ZopeInterfaceFunction
Method
PRIVATE
Update the rule data tables to reflect the fact that rule applies at the position (sentnum, wordnum).
-
nltk.tag.brill_trainer.BrillTaggerTrainer._update_rule_not_applies
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_update_rule_not_applies
ZopeInterfaceFunction
Method
PRIVATE
Update the rule data tables to reflect the fact that rule does not apply at the position (sentnum, wordnum).
-
nltk.tag.brill_trainer.BrillTaggerTrainer._best_rule
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_best_rule
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tag.brill_trainer.BrillTaggerTrainer._apply_rule
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_apply_rule
ZopeInterfaceFunction
Method
PRIVATE
Update test_sents by applying rule everywhere where its conditions are met.
-
nltk.tag.brill_trainer.BrillTaggerTrainer._update_tag_positions
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_update_tag_positions
ZopeInterfaceFunction
Method
PRIVATE
Update _tag_positions to reflect the changes to tags that are made by rule.
-
nltk.tag.brill_trainer.BrillTaggerTrainer._update_rules
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_update_rules
ZopeInterfaceFunction
Method
PRIVATE
Check if we should add or remove any rules from consideration, given the changes made by rule.
-
nltk.tag.brill_trainer.BrillTaggerTrainer._trace_rule
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_trace_rule
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.brill_trainer.BrillTaggerTrainer._trace_apply
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_trace_apply
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.brill_trainer.BrillTaggerTrainer._trace_update_rules
nltk.tag.brill_trainer.BrillTaggerTrainer.html#_trace_update_rules
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT
nltk.tag.tnt.TnT.html
ZopeInterfaceClass
Class
VISIBLE
TnT - Statistical POS tagger
-
nltk.tag.tnt.TnT.__init__
nltk.tag.tnt.TnT.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a TnT statistical tagger. Tagger must be trained before being used to tag input.
-
nltk.tag.tnt.TnT._uni
nltk.tag.tnt.TnT.html#_uni
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._bi
nltk.tag.tnt.TnT.html#_bi
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._tri
nltk.tag.tnt.TnT.html#_tri
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._wd
nltk.tag.tnt.TnT.html#_wd
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._eos
nltk.tag.tnt.TnT.html#_eos
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._l1
nltk.tag.tnt.TnT.html#_l1
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._l2
nltk.tag.tnt.TnT.html#_l2
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._l3
nltk.tag.tnt.TnT.html#_l3
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._N
nltk.tag.tnt.TnT.html#_N
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._C
nltk.tag.tnt.TnT.html#_C
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._T
nltk.tag.tnt.TnT.html#_T
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT._unk
nltk.tag.tnt.TnT.html#_unk
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.tnt.TnT.unknown
nltk.tag.tnt.TnT.html#unknown
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.tnt.TnT.known
nltk.tag.tnt.TnT.html#known
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.tnt.TnT.train
nltk.tag.tnt.TnT.html#train
ZopeInterfaceFunction
Method
VISIBLE
Uses a set of tagged data to train the tagger. If an unknown word tagger is specified, it is trained on the same data.
-
nltk.tag.tnt.TnT._compute_lambda
nltk.tag.tnt.TnT.html#_compute_lambda
ZopeInterfaceFunction
Method
PRIVATE
creates lambda values based upon training data
-
nltk.tag.tnt.TnT._safe_div
nltk.tag.tnt.TnT.html#_safe_div
ZopeInterfaceFunction
Method
PRIVATE
Safe floating point division function, does not allow division by 0 returns -1 if the denominator is 0
-
nltk.tag.tnt.TnT.tagdata
nltk.tag.tnt.TnT.html#tagdata
ZopeInterfaceFunction
Method
VISIBLE
Tags each sentence in a list of sentences
-
nltk.tag.tnt.TnT.tag
nltk.tag.tnt.TnT.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Tags a single sentence
-
nltk.tag.tnt.TnT._tagword
nltk.tag.tnt.TnT.html#_tagword
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tag.tnt.basic_sent_chop
nltk.tag.tnt.html#basic_sent_chop
ZopeInterfaceFunction
Function
VISIBLE
Basic method for tokenizing input into sentences for this tagger:
-
nltk.tag.tnt.demo
nltk.tag.tnt.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.tnt.demo2
nltk.tag.tnt.html#demo2
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.tnt.demo3
nltk.tag.tnt.html#demo3
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.hunpos._hunpos_url
nltk.tag.hunpos.html#_hunpos_url
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tag.hunpos._hunpos_charset
nltk.tag.hunpos.html#_hunpos_charset
ZopeInterfaceAttribute
Variable
PRIVATE
The default encoding used by hunpos: ISO-8859-1.
-
nltk.tag.hunpos.HunposTagger
nltk.tag.hunpos.HunposTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.hunpos.HunposTagger.__init__
nltk.tag.hunpos.HunposTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Starts the hunpos-tag executable and establishes a connection with it.
-
nltk.tag.hunpos.HunposTagger._closed
nltk.tag.hunpos.HunposTagger.html#_closed
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hunpos.HunposTagger._hunpos_bin
nltk.tag.hunpos.HunposTagger.html#_hunpos_bin
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hunpos.HunposTagger._hunpos_model
nltk.tag.hunpos.HunposTagger.html#_hunpos_model
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hunpos.HunposTagger._encoding
nltk.tag.hunpos.HunposTagger.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hunpos.HunposTagger._hunpos
nltk.tag.hunpos.HunposTagger.html#_hunpos
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hunpos.HunposTagger.__del__
nltk.tag.hunpos.HunposTagger.html#__del__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.hunpos.HunposTagger.close
nltk.tag.hunpos.HunposTagger.html#close
ZopeInterfaceFunction
Method
VISIBLE
Closes the pipe to the hunpos executable.
-
nltk.tag.hunpos.HunposTagger.__enter__
nltk.tag.hunpos.HunposTagger.html#__enter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.hunpos.HunposTagger.__exit__
nltk.tag.hunpos.HunposTagger.html#__exit__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.hunpos.HunposTagger.tag
nltk.tag.hunpos.HunposTagger.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Tags a single sentence: a list of words. The tokens should not contain any newline characters.
-
nltk.tag.stanford._stanford_url
nltk.tag.stanford.html#_stanford_url
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordTagger
nltk.tag.stanford.StanfordTagger.html
ZopeInterfaceClass
Class
VISIBLE
An interface to Stanford taggers. Subclasses must define:
-
nltk.tag.stanford.StanfordTagger._SEPARATOR
nltk.tag.stanford.StanfordTagger.html#_SEPARATOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordTagger._JAR
nltk.tag.stanford.StanfordTagger.html#_JAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordTagger.__init__
nltk.tag.stanford.StanfordTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.stanford.StanfordTagger._stanford_jar
nltk.tag.stanford.StanfordTagger.html#_stanford_jar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordTagger._stanford_model
nltk.tag.stanford.StanfordTagger.html#_stanford_model
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordTagger._encoding
nltk.tag.stanford.StanfordTagger.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordTagger.java_options
nltk.tag.stanford.StanfordTagger.html#java_options
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.stanford.StanfordTagger._cmd
nltk.tag.stanford.StanfordTagger.html#_cmd
ZopeInterfaceAttribute
Property
PRIVATE
A property that returns the command that will be executed.
-
nltk.tag.stanford.StanfordTagger.tag
nltk.tag.stanford.StanfordTagger.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Determine the most appropriate tag sequence for the given token sequence, and return a corresponding list of tagged tokens. A tagged token is encoded as a tuple (token, tag).
-
nltk.tag.stanford.StanfordTagger.tag_sents
nltk.tag.stanford.StanfordTagger.html#tag_sents
ZopeInterfaceFunction
Method
VISIBLE
Apply self.tag() to each element of sentences. I.e.:
-
nltk.tag.stanford.StanfordTagger._input_file_path
nltk.tag.stanford.StanfordTagger.html#_input_file_path
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordTagger.parse_output
nltk.tag.stanford.StanfordTagger.html#parse_output
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.stanford.StanfordPOSTagger
nltk.tag.stanford.StanfordPOSTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.stanford.StanfordPOSTagger._SEPARATOR
nltk.tag.stanford.StanfordPOSTagger.html#_SEPARATOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordPOSTagger._JAR
nltk.tag.stanford.StanfordPOSTagger.html#_JAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordPOSTagger.__init__
nltk.tag.stanford.StanfordPOSTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.stanford.StanfordPOSTagger._cmd
nltk.tag.stanford.StanfordPOSTagger.html#_cmd
ZopeInterfaceAttribute
Property
PRIVATE
A property that returns the command that will be executed.
-
nltk.tag.stanford.StanfordNERTagger
nltk.tag.stanford.StanfordNERTagger.html
ZopeInterfaceClass
Class
VISIBLE
A class for Named-Entity Tagging with Stanford Tagger. The input is the paths to:
-
nltk.tag.stanford.StanfordNERTagger._SEPARATOR
nltk.tag.stanford.StanfordNERTagger.html#_SEPARATOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordNERTagger._JAR
nltk.tag.stanford.StanfordNERTagger.html#_JAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordNERTagger._FORMAT
nltk.tag.stanford.StanfordNERTagger.html#_FORMAT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tag.stanford.StanfordNERTagger.__init__
nltk.tag.stanford.StanfordNERTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.stanford.StanfordNERTagger._cmd
nltk.tag.stanford.StanfordNERTagger.html#_cmd
ZopeInterfaceAttribute
Property
PRIVATE
A property that returns the command that will be executed.
-
nltk.tag.stanford.StanfordNERTagger.parse_output
nltk.tag.stanford.StanfordNERTagger.html#parse_output
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.hmm._TEXT
nltk.tag.hmm.html#_TEXT
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tag.hmm._TAG
nltk.tag.hmm.html#_TAG
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tag.hmm._identity
nltk.tag.hmm.html#_identity
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger
nltk.tag.hmm.HiddenMarkovModelTagger.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tag.hmm.HiddenMarkovModelTagger.__init__
nltk.tag.hmm.HiddenMarkovModelTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._symbols
nltk.tag.hmm.HiddenMarkovModelTagger.html#_symbols
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._states
nltk.tag.hmm.HiddenMarkovModelTagger.html#_states
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._transitions
nltk.tag.hmm.HiddenMarkovModelTagger.html#_transitions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._outputs
nltk.tag.hmm.HiddenMarkovModelTagger.html#_outputs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._priors
nltk.tag.hmm.HiddenMarkovModelTagger.html#_priors
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._cache
nltk.tag.hmm.HiddenMarkovModelTagger.html#_cache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._transform
nltk.tag.hmm.HiddenMarkovModelTagger.html#_transform
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._train
nltk.tag.hmm.HiddenMarkovModelTagger.html#_train
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger.train
nltk.tag.hmm.HiddenMarkovModelTagger.html#train
ZopeInterfaceFunction
Class Method
VISIBLE
Train a new HiddenMarkovModelTagger using the given labeled and unlabeled training instances. Testing will be performed if test instances are provided.
-
nltk.tag.hmm.HiddenMarkovModelTagger.probability
nltk.tag.hmm.HiddenMarkovModelTagger.html#probability
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.hmm.HiddenMarkovModelTagger.log_probability
nltk.tag.hmm.HiddenMarkovModelTagger.html#log_probability
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.hmm.HiddenMarkovModelTagger.tag
nltk.tag.hmm.HiddenMarkovModelTagger.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Tags the sequence with the highest probability state sequence. This uses the best_path method to find the Viterbi path.
-
nltk.tag.hmm.HiddenMarkovModelTagger._tag
nltk.tag.hmm.HiddenMarkovModelTagger.html#_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._output_logprob
nltk.tag.hmm.HiddenMarkovModelTagger.html#_output_logprob
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.tag.hmm.HiddenMarkovModelTagger._create_cache
nltk.tag.hmm.HiddenMarkovModelTagger.html#_create_cache
ZopeInterfaceFunction
Method
PRIVATE
The cache is a tuple (P, O, X, S) where:
-
nltk.tag.hmm.HiddenMarkovModelTagger._update_cache
nltk.tag.hmm.HiddenMarkovModelTagger.html#_update_cache
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger.reset_cache
nltk.tag.hmm.HiddenMarkovModelTagger.html#reset_cache
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger.best_path
nltk.tag.hmm.HiddenMarkovModelTagger.html#best_path
ZopeInterfaceFunction
Method
VISIBLE
Returns the state sequence of the optimal (most probable) path through the HMM. Uses the Viterbi algorithm to calculate this part by dynamic programming.
-
nltk.tag.hmm.HiddenMarkovModelTagger._best_path
nltk.tag.hmm.HiddenMarkovModelTagger.html#_best_path
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger.best_path_simple
nltk.tag.hmm.HiddenMarkovModelTagger.html#best_path_simple
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.hmm.HiddenMarkovModelTagger._best_path_simple
nltk.tag.hmm.HiddenMarkovModelTagger.html#_best_path_simple
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger.random_sample
nltk.tag.hmm.HiddenMarkovModelTagger.html#random_sample
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.hmm.HiddenMarkovModelTagger._sample_probdist
nltk.tag.hmm.HiddenMarkovModelTagger.html#_sample_probdist
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger.entropy
nltk.tag.hmm.HiddenMarkovModelTagger.html#entropy
ZopeInterfaceFunction
Method
VISIBLE
Returns the entropy over labellings of the given sequence. This is given by:
-
nltk.tag.hmm.HiddenMarkovModelTagger.point_entropy
nltk.tag.hmm.HiddenMarkovModelTagger.html#point_entropy
ZopeInterfaceFunction
Method
VISIBLE
Returns the pointwise entropy over the possible states at each position in the chain, given the observation sequence.
-
nltk.tag.hmm.HiddenMarkovModelTagger._exhaustive_entropy
nltk.tag.hmm.HiddenMarkovModelTagger.html#_exhaustive_entropy
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._exhaustive_point_entropy
nltk.tag.hmm.HiddenMarkovModelTagger.html#_exhaustive_point_entropy
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTagger._transitions_matrix
nltk.tag.hmm.HiddenMarkovModelTagger.html#_transitions_matrix
ZopeInterfaceFunction
Method
PRIVATE
Return a matrix of transition log probabilities.
-
nltk.tag.hmm.HiddenMarkovModelTagger._outputs_vector
nltk.tag.hmm.HiddenMarkovModelTagger.html#_outputs_vector
ZopeInterfaceFunction
Method
PRIVATE
Return a vector with log probabilities of emitting a symbol when entering states.
-
nltk.tag.hmm.HiddenMarkovModelTagger._forward_probability
nltk.tag.hmm.HiddenMarkovModelTagger.html#_forward_probability
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tag.hmm.HiddenMarkovModelTagger._backward_probability
nltk.tag.hmm.HiddenMarkovModelTagger.html#_backward_probability
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tag.hmm.HiddenMarkovModelTagger.test
nltk.tag.hmm.HiddenMarkovModelTagger.html#test
ZopeInterfaceFunction
Method
VISIBLE
Tests the HiddenMarkovModelTagger instance.
-
nltk.tag.hmm.HiddenMarkovModelTagger.__repr__
nltk.tag.hmm.HiddenMarkovModelTagger.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTrainer
nltk.tag.hmm.HiddenMarkovModelTrainer.html
ZopeInterfaceClass
Class
VISIBLE
Algorithms for learning HMM parameters from training data. These include both supervised learning (MLE) and unsupervised learning (Baum-Welch).
-
nltk.tag.hmm.HiddenMarkovModelTrainer.__init__
nltk.tag.hmm.HiddenMarkovModelTrainer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTrainer._states
nltk.tag.hmm.HiddenMarkovModelTrainer.html#_states
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTrainer._symbols
nltk.tag.hmm.HiddenMarkovModelTrainer.html#_symbols
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTrainer.train
nltk.tag.hmm.HiddenMarkovModelTrainer.html#train
ZopeInterfaceFunction
Method
VISIBLE
Trains the HMM using both (or either of) supervised and unsupervised techniques.
-
nltk.tag.hmm.HiddenMarkovModelTrainer._baum_welch_step
nltk.tag.hmm.HiddenMarkovModelTrainer.html#_baum_welch_step
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.hmm.HiddenMarkovModelTrainer.train_unsupervised
nltk.tag.hmm.HiddenMarkovModelTrainer.html#train_unsupervised
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.hmm.HiddenMarkovModelTrainer.train_supervised
nltk.tag.hmm.HiddenMarkovModelTrainer.html#train_supervised
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.hmm._ninf_array
nltk.tag.hmm.html#_ninf_array
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.hmm.logsumexp2
nltk.tag.hmm.html#logsumexp2
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.hmm._log_add
nltk.tag.hmm.html#_log_add
ZopeInterfaceFunction
Function
PRIVATE
Adds the logged values, returning the logarithm of the addition.
-
nltk.tag.hmm._create_hmm_tagger
nltk.tag.hmm.html#_create_hmm_tagger
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.hmm._market_hmm_example
nltk.tag.hmm.html#_market_hmm_example
ZopeInterfaceFunction
Function
PRIVATE
Return an example HMM (described at page 381, Huang et al)
-
nltk.tag.hmm.demo
nltk.tag.hmm.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.hmm.load_pos
nltk.tag.hmm.html#load_pos
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.hmm.demo_pos
nltk.tag.hmm.html#demo_pos
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.hmm._untag
nltk.tag.hmm.html#_untag
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.hmm.demo_pos_bw
nltk.tag.hmm.html#demo_pos_bw
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.hmm.demo_bw
nltk.tag.hmm.html#demo_bw
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tag.senna.SennaTagger
nltk.tag.senna.SennaTagger.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/2 method documented
-
nltk.tag.senna.SennaTagger.__init__
nltk.tag.senna.SennaTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.senna.SennaTagger.tag_sents
nltk.tag.senna.SennaTagger.html#tag_sents
ZopeInterfaceFunction
Method
VISIBLE
Applies the tag method over a list of sentences. This method will return for each sentence a list of tuples of (word, tag).
-
nltk.tag.senna.SennaChunkTagger
nltk.tag.senna.SennaChunkTagger.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 2/3 methods documented
-
nltk.tag.senna.SennaChunkTagger.__init__
nltk.tag.senna.SennaChunkTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.senna.SennaChunkTagger.tag_sents
nltk.tag.senna.SennaChunkTagger.html#tag_sents
ZopeInterfaceFunction
Method
VISIBLE
Applies the tag method over a list of sentences. This method will return for each sentence a list of tuples of (word, tag).
-
nltk.tag.senna.SennaChunkTagger.bio_to_chunks
nltk.tag.senna.SennaChunkTagger.html#bio_to_chunks
ZopeInterfaceFunction
Method
VISIBLE
Extracts the chunks in a BIO chunk-tagged sentence.
-
nltk.tag.senna.SennaNERTagger
nltk.tag.senna.SennaNERTagger.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/2 method documented
-
nltk.tag.senna.SennaNERTagger.__init__
nltk.tag.senna.SennaNERTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.senna.SennaNERTagger.tag_sents
nltk.tag.senna.SennaNERTagger.html#tag_sents
ZopeInterfaceFunction
Method
VISIBLE
Applies the tag method over a list of sentences. This method will return for each sentence a list of tuples of (word, tag).
-
nltk.tag.crf.CRFTagger
nltk.tag.crf.CRFTagger.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.tag.crf.CRFTagger.__init__
nltk.tag.crf.CRFTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.crf.CRFTagger._model_file
nltk.tag.crf.CRFTagger.html#_model_file
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.crf.CRFTagger._tagger
nltk.tag.crf.CRFTagger.html#_tagger
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.crf.CRFTagger._feature_func
nltk.tag.crf.CRFTagger.html#_feature_func
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.crf.CRFTagger._verbose
nltk.tag.crf.CRFTagger.html#_verbose
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.crf.CRFTagger._training_options
nltk.tag.crf.CRFTagger.html#_training_options
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.crf.CRFTagger._pattern
nltk.tag.crf.CRFTagger.html#_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.crf.CRFTagger.set_model_file
nltk.tag.crf.CRFTagger.html#set_model_file
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.crf.CRFTagger._get_features
nltk.tag.crf.CRFTagger.html#_get_features
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tag.crf.CRFTagger.tag_sents
nltk.tag.crf.CRFTagger.html#tag_sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.crf.CRFTagger.train
nltk.tag.crf.CRFTagger.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.crf.CRFTagger.tag
nltk.tag.crf.CRFTagger.html#tag
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.perceptron.PICKLE
nltk.tag.perceptron.html#PICKLE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron
nltk.tag.perceptron.AveragedPerceptron.html
ZopeInterfaceClass
Class
VISIBLE
An averaged perceptron, as implemented by Matthew Honnibal.
-
nltk.tag.perceptron.AveragedPerceptron.json_tag
nltk.tag.perceptron.AveragedPerceptron.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron.__init__
nltk.tag.perceptron.AveragedPerceptron.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron.weights
nltk.tag.perceptron.AveragedPerceptron.html#weights
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron.classes
nltk.tag.perceptron.AveragedPerceptron.html#classes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron._totals
nltk.tag.perceptron.AveragedPerceptron.html#_totals
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron._tstamps
nltk.tag.perceptron.AveragedPerceptron.html#_tstamps
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron.i
nltk.tag.perceptron.AveragedPerceptron.html#i
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron._softmax
nltk.tag.perceptron.AveragedPerceptron.html#_softmax
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron.predict
nltk.tag.perceptron.AveragedPerceptron.html#predict
ZopeInterfaceFunction
Method
VISIBLE
Dot-product the features and current weights and return the best label.
-
nltk.tag.perceptron.AveragedPerceptron.update
nltk.tag.perceptron.AveragedPerceptron.html#update
ZopeInterfaceFunction
Method
VISIBLE
Update the feature weights.
-
nltk.tag.perceptron.AveragedPerceptron.average_weights
nltk.tag.perceptron.AveragedPerceptron.html#average_weights
ZopeInterfaceFunction
Method
VISIBLE
Average weights from all iterations.
-
nltk.tag.perceptron.AveragedPerceptron.save
nltk.tag.perceptron.AveragedPerceptron.html#save
ZopeInterfaceFunction
Method
VISIBLE
Save the pickled model weights.
-
nltk.tag.perceptron.AveragedPerceptron.load
nltk.tag.perceptron.AveragedPerceptron.html#load
ZopeInterfaceFunction
Method
VISIBLE
Load the pickled model weights.
-
nltk.tag.perceptron.AveragedPerceptron.encode_json_obj
nltk.tag.perceptron.AveragedPerceptron.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.perceptron.AveragedPerceptron.decode_json_obj
nltk.tag.perceptron.AveragedPerceptron.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger
nltk.tag.perceptron.PerceptronTagger.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.tag.perceptron.PerceptronTagger.json_tag
nltk.tag.perceptron.PerceptronTagger.html#json_tag
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.START
nltk.tag.perceptron.PerceptronTagger.html#START
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.END
nltk.tag.perceptron.PerceptronTagger.html#END
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.__init__
nltk.tag.perceptron.PerceptronTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.perceptron.PerceptronTagger.model
nltk.tag.perceptron.PerceptronTagger.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.tagdict
nltk.tag.perceptron.PerceptronTagger.html#tagdict
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.classes
nltk.tag.perceptron.PerceptronTagger.html#classes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.tag
nltk.tag.perceptron.PerceptronTagger.html#tag
ZopeInterfaceFunction
Method
VISIBLE
Tag tokenized sentences. :params tokens: list of word :type tokens: list(str)
-
nltk.tag.perceptron.PerceptronTagger.train
nltk.tag.perceptron.PerceptronTagger.html#train
ZopeInterfaceFunction
Method
VISIBLE
Train a model from sentences, and save it at save_loc. nr_iter controls the number of Perceptron training iterations.
-
nltk.tag.perceptron.PerceptronTagger._sentences
nltk.tag.perceptron.PerceptronTagger.html#_sentences
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.load
nltk.tag.perceptron.PerceptronTagger.html#load
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tag.perceptron.PerceptronTagger.encode_json_obj
nltk.tag.perceptron.PerceptronTagger.html#encode_json_obj
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.decode_json_obj
nltk.tag.perceptron.PerceptronTagger.html#decode_json_obj
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.tag.perceptron.PerceptronTagger.normalize
nltk.tag.perceptron.PerceptronTagger.html#normalize
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tag.perceptron.PerceptronTagger._get_features
nltk.tag.perceptron.PerceptronTagger.html#_get_features
ZopeInterfaceFunction
Method
PRIVATE
Map tokens into a feature representation, implemented as a {hashable: int} dict. If the features change, a new model must be trained.
-
nltk.tag.perceptron.PerceptronTagger._make_tagdict
nltk.tag.perceptron.PerceptronTagger.html#_make_tagdict
ZopeInterfaceFunction
Method
PRIVATE
Make a tag dictionary for single-tag words. :param sentences: A list of list of (word, tag) tuples.
-
nltk.tag.perceptron._pc
nltk.tag.perceptron.html#_pc
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.perceptron._load_data_conll_format
nltk.tag.perceptron.html#_load_data_conll_format
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.perceptron._get_pretrain_model
nltk.tag.perceptron.html#_get_pretrain_model
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.RUS_PICKLE
nltk.tag.html#RUS_PICKLE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tag._get_tagger
nltk.tag.html#_get_tagger
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag._pos_tag
nltk.tag.html#_pos_tag
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tag.pos_tag
nltk.tag.html#pos_tag
ZopeInterfaceFunction
Function
VISIBLE
Use NLTK's currently recommended part of speech tagger to tag the given list of tokens.
-
nltk.tag.pos_tag_sents
nltk.tag.html#pos_tag_sents
ZopeInterfaceFunction
Function
VISIBLE
Use NLTK's currently recommended part of speech tagger to tag the given list of sentences, each consisting of a list of tokens.
-
nltk.sem.linearlogic._counter
nltk.sem.linearlogic.html#_counter
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.sem.linearlogic.Tokens
nltk.sem.linearlogic.Tokens.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Tokens.OPEN
nltk.sem.linearlogic.Tokens.html#OPEN
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Tokens.CLOSE
nltk.sem.linearlogic.Tokens.html#CLOSE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Tokens.IMP
nltk.sem.linearlogic.Tokens.html#IMP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Tokens.PUNCT
nltk.sem.linearlogic.Tokens.html#PUNCT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Tokens.TOKENS
nltk.sem.linearlogic.Tokens.html#TOKENS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.LinearLogicParser
nltk.sem.linearlogic.LinearLogicParser.html
ZopeInterfaceClass
Class
VISIBLE
A linear logic expression parser.
-
nltk.sem.linearlogic.LinearLogicParser.__init__
nltk.sem.linearlogic.LinearLogicParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.linearlogic.LinearLogicParser.operator_precedence
nltk.sem.linearlogic.LinearLogicParser.html#operator_precedence
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.LinearLogicParser.get_all_symbols
nltk.sem.linearlogic.LinearLogicParser.html#get_all_symbols
ZopeInterfaceFunction
Method
VISIBLE
This method exists to be overridden
-
nltk.sem.linearlogic.LinearLogicParser.handle
nltk.sem.linearlogic.LinearLogicParser.html#handle
ZopeInterfaceFunction
Method
VISIBLE
This method is intended to be overridden for logics that use different operators or expressions
-
nltk.sem.linearlogic.LinearLogicParser.get_BooleanExpression_factory
nltk.sem.linearlogic.LinearLogicParser.html#get_BooleanExpression_factory
ZopeInterfaceFunction
Method
VISIBLE
This method serves as a hook for other logic parsers that have different boolean operators
-
nltk.sem.linearlogic.LinearLogicParser.make_BooleanExpression
nltk.sem.linearlogic.LinearLogicParser.html#make_BooleanExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.LinearLogicParser.attempt_ApplicationExpression
nltk.sem.linearlogic.LinearLogicParser.html#attempt_ApplicationExpression
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.linearlogic.LinearLogicParser.make_VariableExpression
nltk.sem.linearlogic.LinearLogicParser.html#make_VariableExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Expression
nltk.sem.linearlogic.Expression.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Expression._linear_logic_parser
nltk.sem.linearlogic.Expression.html#_linear_logic_parser
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.sem.linearlogic.Expression.fromstring
nltk.sem.linearlogic.Expression.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Expression.applyto
nltk.sem.linearlogic.Expression.html#applyto
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Expression.__call__
nltk.sem.linearlogic.Expression.html#__call__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.Expression.__repr__
nltk.sem.linearlogic.Expression.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.AtomicExpression
nltk.sem.linearlogic.AtomicExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 instance variable, 4/9 methods documented
-
nltk.sem.linearlogic.AtomicExpression.__init__
nltk.sem.linearlogic.AtomicExpression.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.linearlogic.AtomicExpression.name
nltk.sem.linearlogic.AtomicExpression.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.AtomicExpression.dependencies
nltk.sem.linearlogic.AtomicExpression.html#dependencies
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.AtomicExpression.simplify
nltk.sem.linearlogic.AtomicExpression.html#simplify
ZopeInterfaceFunction
Method
VISIBLE
If 'self' is bound by 'bindings', return the atomic to which it is bound. Otherwise, return self.
-
nltk.sem.linearlogic.AtomicExpression.compile_pos
nltk.sem.linearlogic.AtomicExpression.html#compile_pos
ZopeInterfaceFunction
Method
VISIBLE
From Iddo Lev's PhD Dissertation p108-109
-
nltk.sem.linearlogic.AtomicExpression.compile_neg
nltk.sem.linearlogic.AtomicExpression.html#compile_neg
ZopeInterfaceFunction
Method
VISIBLE
From Iddo Lev's PhD Dissertation p108-109
-
nltk.sem.linearlogic.AtomicExpression.initialize_labels
nltk.sem.linearlogic.AtomicExpression.html#initialize_labels
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.AtomicExpression.__eq__
nltk.sem.linearlogic.AtomicExpression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.AtomicExpression.__ne__
nltk.sem.linearlogic.AtomicExpression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.AtomicExpression.__str__
nltk.sem.linearlogic.AtomicExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.AtomicExpression.__hash__
nltk.sem.linearlogic.AtomicExpression.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ConstantExpression
nltk.sem.linearlogic.ConstantExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 method documented
-
nltk.sem.linearlogic.ConstantExpression.unify
nltk.sem.linearlogic.ConstantExpression.html#unify
ZopeInterfaceFunction
Method
VISIBLE
If 'other' is a constant, then it must be equal to 'self'. If 'other' is a variable, then it must not be bound to anything other than 'self'.
-
nltk.sem.linearlogic.VariableExpression
nltk.sem.linearlogic.VariableExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 method documented
-
nltk.sem.linearlogic.VariableExpression.unify
nltk.sem.linearlogic.VariableExpression.html#unify
ZopeInterfaceFunction
Method
VISIBLE
'self' must not be bound to anything other than 'other'.
-
nltk.sem.linearlogic.ImpExpression
nltk.sem.linearlogic.ImpExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 instance variable, 4/10 methods documented
-
nltk.sem.linearlogic.ImpExpression.__init__
nltk.sem.linearlogic.ImpExpression.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.linearlogic.ImpExpression.antecedent
nltk.sem.linearlogic.ImpExpression.html#antecedent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ImpExpression.consequent
nltk.sem.linearlogic.ImpExpression.html#consequent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ImpExpression.simplify
nltk.sem.linearlogic.ImpExpression.html#simplify
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ImpExpression.unify
nltk.sem.linearlogic.ImpExpression.html#unify
ZopeInterfaceFunction
Method
VISIBLE
Both the antecedent and consequent of 'self' and 'other' must unify.
-
nltk.sem.linearlogic.ImpExpression.compile_pos
nltk.sem.linearlogic.ImpExpression.html#compile_pos
ZopeInterfaceFunction
Method
VISIBLE
From Iddo Lev's PhD Dissertation p108-109
-
nltk.sem.linearlogic.ImpExpression.compile_neg
nltk.sem.linearlogic.ImpExpression.html#compile_neg
ZopeInterfaceFunction
Method
VISIBLE
From Iddo Lev's PhD Dissertation p108-109
-
nltk.sem.linearlogic.ImpExpression.initialize_labels
nltk.sem.linearlogic.ImpExpression.html#initialize_labels
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ImpExpression.__eq__
nltk.sem.linearlogic.ImpExpression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ImpExpression.__ne__
nltk.sem.linearlogic.ImpExpression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ImpExpression.__str__
nltk.sem.linearlogic.ImpExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ImpExpression.__hash__
nltk.sem.linearlogic.ImpExpression.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ApplicationExpression
nltk.sem.linearlogic.ApplicationExpression.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 2/6 methods documented
-
nltk.sem.linearlogic.ApplicationExpression.__init__
nltk.sem.linearlogic.ApplicationExpression.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.linearlogic.ApplicationExpression.function
nltk.sem.linearlogic.ApplicationExpression.html#function
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ApplicationExpression.argument
nltk.sem.linearlogic.ApplicationExpression.html#argument
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ApplicationExpression.bindings
nltk.sem.linearlogic.ApplicationExpression.html#bindings
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ApplicationExpression.simplify
nltk.sem.linearlogic.ApplicationExpression.html#simplify
ZopeInterfaceFunction
Method
VISIBLE
Since function is an implication, return its consequent. There should be no need to check that the application is valid since the checking is done by the constructor.
-
nltk.sem.linearlogic.ApplicationExpression.__eq__
nltk.sem.linearlogic.ApplicationExpression.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ApplicationExpression.__ne__
nltk.sem.linearlogic.ApplicationExpression.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ApplicationExpression.__str__
nltk.sem.linearlogic.ApplicationExpression.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.ApplicationExpression.__hash__
nltk.sem.linearlogic.ApplicationExpression.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.BindingDict
nltk.sem.linearlogic.BindingDict.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 4/9 methods documented
-
nltk.sem.linearlogic.BindingDict.__init__
nltk.sem.linearlogic.BindingDict.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.linearlogic.BindingDict.d
nltk.sem.linearlogic.BindingDict.html#d
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.linearlogic.BindingDict.__setitem__
nltk.sem.linearlogic.BindingDict.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
A binding is consistent with the dict if its variable is not already bound, OR if its variable is already bound to its argument.
-
nltk.sem.linearlogic.BindingDict.__getitem__
nltk.sem.linearlogic.BindingDict.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Return the expression to which 'variable' is bound
-
nltk.sem.linearlogic.BindingDict.__contains__
nltk.sem.linearlogic.BindingDict.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.BindingDict.__add__
nltk.sem.linearlogic.BindingDict.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.linearlogic.BindingDict.__ne__
nltk.sem.linearlogic.BindingDict.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.BindingDict.__eq__
nltk.sem.linearlogic.BindingDict.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.BindingDict.__str__
nltk.sem.linearlogic.BindingDict.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.BindingDict.__repr__
nltk.sem.linearlogic.BindingDict.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.VariableBindingException
nltk.sem.linearlogic.VariableBindingException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.linearlogic.UnificationException
nltk.sem.linearlogic.UnificationException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.linearlogic.UnificationException.__init__
nltk.sem.linearlogic.UnificationException.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.linearlogic.LinearLogicApplicationException
nltk.sem.linearlogic.LinearLogicApplicationException.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.linearlogic.demo
nltk.sem.linearlogic.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.glue.SPEC_SEMTYPES
nltk.sem.glue.html#SPEC_SEMTYPES
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.glue.OPTIONAL_RELATIONSHIPS
nltk.sem.glue.html#OPTIONAL_RELATIONSHIPS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula
nltk.sem.glue.GlueFormula.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 2/12 methods documented
-
nltk.sem.glue.GlueFormula.__init__
nltk.sem.glue.GlueFormula.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.meaning
nltk.sem.glue.GlueFormula.html#meaning
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.glue
nltk.sem.glue.GlueFormula.html#glue
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.indices
nltk.sem.glue.GlueFormula.html#indices
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.applyto
nltk.sem.glue.GlueFormula.html#applyto
ZopeInterfaceFunction
Method
VISIBLE
self = (x.(walk x), (subj -o f)) arg = (john , subj) returns ((walk john), f)
-
nltk.sem.glue.GlueFormula.make_VariableExpression
nltk.sem.glue.GlueFormula.html#make_VariableExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.make_LambdaExpression
nltk.sem.glue.GlueFormula.html#make_LambdaExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.lambda_abstract
nltk.sem.glue.GlueFormula.html#lambda_abstract
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.compile
nltk.sem.glue.GlueFormula.html#compile
ZopeInterfaceFunction
Method
VISIBLE
From Iddo Lev's PhD Dissertation p108-109
-
nltk.sem.glue.GlueFormula.simplify
nltk.sem.glue.GlueFormula.html#simplify
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.__eq__
nltk.sem.glue.GlueFormula.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.__ne__
nltk.sem.glue.GlueFormula.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.__lt__
nltk.sem.glue.GlueFormula.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.__str__
nltk.sem.glue.GlueFormula.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueFormula.__repr__
nltk.sem.glue.GlueFormula.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict
nltk.sem.glue.GlueDict.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 instance variable, 4/15 methods documented
-
nltk.sem.glue.GlueDict.__init__
nltk.sem.glue.GlueDict.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.filename
nltk.sem.glue.GlueDict.html#filename
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.file_encoding
nltk.sem.glue.GlueDict.html#file_encoding
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.read_file
nltk.sem.glue.GlueDict.html#read_file
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.__str__
nltk.sem.glue.GlueDict.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.to_glueformula_list
nltk.sem.glue.GlueDict.html#to_glueformula_list
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.lookup
nltk.sem.glue.GlueDict.html#lookup
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.add_missing_dependencies
nltk.sem.glue.GlueDict.html#add_missing_dependencies
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict._lookup_semtype_option
nltk.sem.glue.GlueDict.html#_lookup_semtype_option
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.glue.GlueDict.get_semtypes
nltk.sem.glue.GlueDict.html#get_semtypes
ZopeInterfaceFunction
Method
VISIBLE
Based on the node, return a list of plausible semtypes in order of plausibility.
-
nltk.sem.glue.GlueDict.get_glueformulas_from_semtype_entry
nltk.sem.glue.GlueDict.html#get_glueformulas_from_semtype_entry
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.get_meaning_formula
nltk.sem.glue.GlueDict.html#get_meaning_formula
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.glue.GlueDict.initialize_labels
nltk.sem.glue.GlueDict.html#initialize_labels
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.find_label_name
nltk.sem.glue.GlueDict.html#find_label_name
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.GlueDict.get_label
nltk.sem.glue.GlueDict.html#get_label
ZopeInterfaceFunction
Method
VISIBLE
Pick an alphabetic character as identifier for an entity in the model.
-
nltk.sem.glue.GlueDict.lookup_unique
nltk.sem.glue.GlueDict.html#lookup_unique
ZopeInterfaceFunction
Method
VISIBLE
Lookup 'key'. There should be exactly one item in the associated relation.
-
nltk.sem.glue.GlueDict.get_GlueFormula_factory
nltk.sem.glue.GlueDict.html#get_GlueFormula_factory
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue
nltk.sem.glue.Glue.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/5 instance variable, 1/11 method documented
-
nltk.sem.glue.Glue.__init__
nltk.sem.glue.Glue.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.verbose
nltk.sem.glue.Glue.html#verbose
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.remove_duplicates
nltk.sem.glue.Glue.html#remove_duplicates
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.depparser
nltk.sem.glue.Glue.html#depparser
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.prover
nltk.sem.glue.Glue.html#prover
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.semtype_file
nltk.sem.glue.Glue.html#semtype_file
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.train_depparser
nltk.sem.glue.Glue.html#train_depparser
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.parse_to_meaning
nltk.sem.glue.Glue.html#parse_to_meaning
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.get_readings
nltk.sem.glue.Glue.html#get_readings
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue._add_to_reading_list
nltk.sem.glue.Glue.html#_add_to_reading_list
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.glue.Glue.parse_to_compiled
nltk.sem.glue.Glue.html#parse_to_compiled
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.dep_parse
nltk.sem.glue.Glue.html#dep_parse
ZopeInterfaceFunction
Method
VISIBLE
Return a dependency graph for the sentence.
-
nltk.sem.glue.Glue.depgraph_to_glue
nltk.sem.glue.Glue.html#depgraph_to_glue
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.get_glue_dict
nltk.sem.glue.Glue.html#get_glue_dict
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.gfl_to_compiled
nltk.sem.glue.Glue.html#gfl_to_compiled
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.Glue.get_pos_tagger
nltk.sem.glue.Glue.html#get_pos_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueFormula
nltk.sem.glue.DrtGlueFormula.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueFormula.__init__
nltk.sem.glue.DrtGlueFormula.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueFormula.meaning
nltk.sem.glue.DrtGlueFormula.html#meaning
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueFormula.glue
nltk.sem.glue.DrtGlueFormula.html#glue
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueFormula.indices
nltk.sem.glue.DrtGlueFormula.html#indices
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueFormula.make_VariableExpression
nltk.sem.glue.DrtGlueFormula.html#make_VariableExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueFormula.make_LambdaExpression
nltk.sem.glue.DrtGlueFormula.html#make_LambdaExpression
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueDict
nltk.sem.glue.DrtGlueDict.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlueDict.get_GlueFormula_factory
nltk.sem.glue.DrtGlueDict.html#get_GlueFormula_factory
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlue
nltk.sem.glue.DrtGlue.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlue.__init__
nltk.sem.glue.DrtGlue.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.DrtGlue.get_glue_dict
nltk.sem.glue.DrtGlue.html#get_glue_dict
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.glue.demo
nltk.sem.glue.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.discourse.ReadingCommand
nltk.inference.discourse.ReadingCommand.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 4/4 methods documented
-
nltk.inference.discourse.ReadingCommand.parse_to_readings
nltk.inference.discourse.ReadingCommand.html#parse_to_readings
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.ReadingCommand.process_thread
nltk.inference.discourse.ReadingCommand.html#process_thread
ZopeInterfaceFunction
Method
VISIBLE
This method should be used to handle dependencies between readings such as resolving anaphora.
-
nltk.inference.discourse.ReadingCommand.combine_readings
nltk.inference.discourse.ReadingCommand.html#combine_readings
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.discourse.ReadingCommand.to_fol
nltk.inference.discourse.ReadingCommand.html#to_fol
ZopeInterfaceFunction
Method
VISIBLE
Convert this expression into a First-Order Logic expression.
-
nltk.inference.discourse.CfgReadingCommand
nltk.inference.discourse.CfgReadingCommand.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/2 instance variable, 4/4 methods documented
-
nltk.inference.discourse.CfgReadingCommand.__init__
nltk.inference.discourse.CfgReadingCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.CfgReadingCommand._gramfile
nltk.inference.discourse.CfgReadingCommand.html#_gramfile
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.CfgReadingCommand._parser
nltk.inference.discourse.CfgReadingCommand.html#_parser
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.CfgReadingCommand.parse_to_readings
nltk.inference.discourse.CfgReadingCommand.html#parse_to_readings
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.CfgReadingCommand.combine_readings
nltk.inference.discourse.CfgReadingCommand.html#combine_readings
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.CfgReadingCommand.to_fol
nltk.inference.discourse.CfgReadingCommand.html#to_fol
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.DrtGlueReadingCommand
nltk.inference.discourse.DrtGlueReadingCommand.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 5/5 methods documented
-
nltk.inference.discourse.DrtGlueReadingCommand.__init__
nltk.inference.discourse.DrtGlueReadingCommand.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.DrtGlueReadingCommand._glue
nltk.inference.discourse.DrtGlueReadingCommand.html#_glue
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DrtGlueReadingCommand.parse_to_readings
nltk.inference.discourse.DrtGlueReadingCommand.html#parse_to_readings
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.DrtGlueReadingCommand.process_thread
nltk.inference.discourse.DrtGlueReadingCommand.html#process_thread
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.DrtGlueReadingCommand.combine_readings
nltk.inference.discourse.DrtGlueReadingCommand.html#combine_readings
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.DrtGlueReadingCommand.to_fol
nltk.inference.discourse.DrtGlueReadingCommand.html#to_fol
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.discourse.DiscourseTester
nltk.inference.discourse.DiscourseTester.html
ZopeInterfaceClass
Class
VISIBLE
Check properties of an ongoing discourse.
-
nltk.inference.discourse.DiscourseTester.__init__
nltk.inference.discourse.DiscourseTester.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize a DiscourseTester.
-
nltk.inference.discourse.DiscourseTester._input
nltk.inference.discourse.DiscourseTester.html#_input
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester._sentences
nltk.inference.discourse.DiscourseTester.html#_sentences
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester._models
nltk.inference.discourse.DiscourseTester.html#_models
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester._readings
nltk.inference.discourse.DiscourseTester.html#_readings
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester._reading_command
nltk.inference.discourse.DiscourseTester.html#_reading_command
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester._threads
nltk.inference.discourse.DiscourseTester.html#_threads
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester._filtered_threads
nltk.inference.discourse.DiscourseTester.html#_filtered_threads
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester._background
nltk.inference.discourse.DiscourseTester.html#_background
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester.sentences
nltk.inference.discourse.DiscourseTester.html#sentences
ZopeInterfaceFunction
Method
VISIBLE
Display the list of sentences in the current discourse.
-
nltk.inference.discourse.DiscourseTester.add_sentence
nltk.inference.discourse.DiscourseTester.html#add_sentence
ZopeInterfaceFunction
Method
VISIBLE
Add a sentence to the current discourse.
-
nltk.inference.discourse.DiscourseTester.retract_sentence
nltk.inference.discourse.DiscourseTester.html#retract_sentence
ZopeInterfaceFunction
Method
VISIBLE
Remove a sentence from the current discourse.
-
nltk.inference.discourse.DiscourseTester.grammar
nltk.inference.discourse.DiscourseTester.html#grammar
ZopeInterfaceFunction
Method
VISIBLE
Print out the grammar in use for parsing input sentences
-
nltk.inference.discourse.DiscourseTester._get_readings
nltk.inference.discourse.DiscourseTester.html#_get_readings
ZopeInterfaceFunction
Method
PRIVATE
Build a list of semantic readings for a sentence.
-
nltk.inference.discourse.DiscourseTester._construct_readings
nltk.inference.discourse.DiscourseTester.html#_construct_readings
ZopeInterfaceFunction
Method
PRIVATE
Use self._sentences to construct a value for self._readings.
-
nltk.inference.discourse.DiscourseTester._construct_threads
nltk.inference.discourse.DiscourseTester.html#_construct_threads
ZopeInterfaceFunction
Method
PRIVATE
Use self._readings to construct a value for self._threads and use the model builder to construct a value for self._filtered_threads
-
nltk.inference.discourse.DiscourseTester._show_readings
nltk.inference.discourse.DiscourseTester.html#_show_readings
ZopeInterfaceFunction
Method
PRIVATE
Print out the readings for the discourse (or a single sentence).
-
nltk.inference.discourse.DiscourseTester._show_threads
nltk.inference.discourse.DiscourseTester.html#_show_threads
ZopeInterfaceFunction
Method
PRIVATE
Print out the value of self._threads or self._filtered_hreads
-
nltk.inference.discourse.DiscourseTester.readings
nltk.inference.discourse.DiscourseTester.html#readings
ZopeInterfaceFunction
Method
VISIBLE
Construct and show the readings of the discourse (or of a single sentence).
-
nltk.inference.discourse.DiscourseTester.expand_threads
nltk.inference.discourse.DiscourseTester.html#expand_threads
ZopeInterfaceFunction
Method
VISIBLE
Given a thread ID, find the list of logic.Expression objects corresponding to the reading IDs in that thread.
-
nltk.inference.discourse.DiscourseTester._check_consistency
nltk.inference.discourse.DiscourseTester.html#_check_consistency
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.discourse.DiscourseTester.models
nltk.inference.discourse.DiscourseTester.html#models
ZopeInterfaceFunction
Method
VISIBLE
Call Mace4 to build a model for each current discourse thread.
-
nltk.inference.discourse.DiscourseTester.add_background
nltk.inference.discourse.DiscourseTester.html#add_background
ZopeInterfaceFunction
Method
VISIBLE
Add a list of background assumptions for reasoning about the discourse.
-
nltk.inference.discourse.DiscourseTester.background
nltk.inference.discourse.DiscourseTester.html#background
ZopeInterfaceFunction
Method
VISIBLE
Show the current background assumptions.
-
nltk.inference.discourse.DiscourseTester.multiply
nltk.inference.discourse.DiscourseTester.html#multiply
ZopeInterfaceFunction
Static Method
VISIBLE
Multiply every thread in discourse by every reading in readings.
-
nltk.inference.discourse.load_fol
nltk.inference.discourse.html#load_fol
ZopeInterfaceFunction
Function
VISIBLE
Temporarily duplicated from nltk.sem.util. Convert a file of first order formulas into a list of Expression objects.
-
nltk.inference.discourse.discourse_demo
nltk.inference.discourse.html#discourse_demo
ZopeInterfaceFunction
Function
VISIBLE
Illustrate the various methods of DiscourseTester
-
nltk.inference.discourse.drt_discourse_demo
nltk.inference.discourse.html#drt_discourse_demo
ZopeInterfaceFunction
Function
VISIBLE
Illustrate the various methods of DiscourseTester
-
nltk.inference.discourse.spacer
nltk.inference.discourse.html#spacer
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.discourse.demo
nltk.inference.discourse.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.translate.api.AlignedSent
nltk.translate.api.AlignedSent.html
ZopeInterfaceClass
Class
VISIBLE
Return an aligned sentence object, which encapsulates two sentences along with an Alignment between them.
-
nltk.translate.api.AlignedSent.alignment
nltk.translate.api.AlignedSent.html#alignment
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.api.AlignedSent.__init__
nltk.translate.api.AlignedSent.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.api.AlignedSent._words
nltk.translate.api.AlignedSent.html#_words
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.api.AlignedSent._mots
nltk.translate.api.AlignedSent.html#_mots
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.api.AlignedSent.words
nltk.translate.api.AlignedSent.html#words
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.translate.api.AlignedSent.mots
nltk.translate.api.AlignedSent.html#mots
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.translate.api.AlignedSent._get_alignment
nltk.translate.api.AlignedSent.html#_get_alignment
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.translate.api.AlignedSent._set_alignment
nltk.translate.api.AlignedSent.html#_set_alignment
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.translate.api.AlignedSent._alignment
nltk.translate.api.AlignedSent.html#_alignment
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.api.AlignedSent.__repr__
nltk.translate.api.AlignedSent.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation for this AlignedSent.
-
nltk.translate.api.AlignedSent._to_dot
nltk.translate.api.AlignedSent.html#_to_dot
ZopeInterfaceFunction
Method
PRIVATE
Dot representation of the aligned sentence
-
nltk.translate.api.AlignedSent._repr_svg_
nltk.translate.api.AlignedSent.html#_repr_svg_
ZopeInterfaceFunction
Method
PRIVATE
Ipython magic : show SVG representation of this AlignedSent.
-
nltk.translate.api.AlignedSent.__str__
nltk.translate.api.AlignedSent.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Return a human-readable string representation for this AlignedSent.
-
nltk.translate.api.AlignedSent.invert
nltk.translate.api.AlignedSent.html#invert
ZopeInterfaceFunction
Method
VISIBLE
Return the aligned sentence pair, reversing the directionality
-
nltk.translate.api.Alignment
nltk.translate.api.Alignment.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.translate.api.Alignment.__new__
nltk.translate.api.Alignment.html#__new__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.api.Alignment._len
nltk.translate.api.Alignment.html#_len
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.api.Alignment._index
nltk.translate.api.Alignment.html#_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.api.Alignment.fromstring
nltk.translate.api.Alignment.html#fromstring
ZopeInterfaceFunction
Class Method
VISIBLE
Read a giza-formatted string and return an Alignment object.
-
nltk.translate.api.Alignment.__getitem__
nltk.translate.api.Alignment.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Look up the alignments that map from a given index or slice.
-
nltk.translate.api.Alignment.invert
nltk.translate.api.Alignment.html#invert
ZopeInterfaceFunction
Method
VISIBLE
Return an Alignment object, being the inverted mapping.
-
nltk.translate.api.Alignment.range
nltk.translate.api.Alignment.html#range
ZopeInterfaceFunction
Method
VISIBLE
Work out the range of the mapping from the given positions. If no positions are specified, compute the range of the entire mapping.
-
nltk.translate.api.Alignment.__repr__
nltk.translate.api.Alignment.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Produce a Giza-formatted string representing the alignment.
-
nltk.translate.api.Alignment.__str__
nltk.translate.api.Alignment.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Produce a Giza-formatted string representing the alignment.
-
nltk.translate.api.Alignment._build_index
nltk.translate.api.Alignment.html#_build_index
ZopeInterfaceFunction
Method
PRIVATE
Build a list self._index such that self._index[i] is a list of the alignments originating from word i.
-
nltk.translate.api._giza2pair
nltk.translate.api.html#_giza2pair
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.translate.api._naacl2pair
nltk.translate.api.html#_naacl2pair
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.translate.api._check_alignment
nltk.translate.api.html#_check_alignment
ZopeInterfaceFunction
Function
PRIVATE
Check whether the alignments are legal.
-
nltk.translate.api.PhraseTableEntry
nltk.translate.api.html#PhraseTableEntry
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.translate.api.PhraseTable
nltk.translate.api.PhraseTable.html
ZopeInterfaceClass
Class
VISIBLE
In-memory store of translations for a given phrase, and the log probability of the those translations
-
nltk.translate.api.PhraseTable.__init__
nltk.translate.api.PhraseTable.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.api.PhraseTable.src_phrases
nltk.translate.api.PhraseTable.html#src_phrases
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.api.PhraseTable.translations_for
nltk.translate.api.PhraseTable.html#translations_for
ZopeInterfaceFunction
Method
VISIBLE
Get the translations for a source language phrase
-
nltk.translate.api.PhraseTable.add
nltk.translate.api.PhraseTable.html#add
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.api.PhraseTable.__contains__
nltk.translate.api.PhraseTable.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.longest_target_sentence_length
nltk.translate.ibm_model.html#longest_target_sentence_length
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.ibm_model.IBMModel
nltk.translate.ibm_model.IBMModel.html
ZopeInterfaceClass
Class
VISIBLE
Abstract base class for all IBM models
-
nltk.translate.ibm_model.IBMModel.MIN_PROB
nltk.translate.ibm_model.IBMModel.html#MIN_PROB
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.translate.ibm_model.IBMModel.__init__
nltk.translate.ibm_model.IBMModel.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.IBMModel.reset_probabilities
nltk.translate.ibm_model.IBMModel.html#reset_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.IBMModel.translation_table
nltk.translate.ibm_model.IBMModel.html#translation_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
dict[str][str]: float. Probability(target word | source word). Values accessed as translation_table[target_word][source_word].
-
nltk.translate.ibm_model.IBMModel.alignment_table
nltk.translate.ibm_model.IBMModel.html#alignment_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
dict[int][int][int][int]: float. Probability(i | j,l,m). Values accessed as alignment_table[i][j][l][m]. Used in model 2 and hill climbing in models 3 and above
-
nltk.translate.ibm_model.IBMModel.fertility_table
nltk.translate.ibm_model.IBMModel.html#fertility_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
dict[int][str]: float. Probability(fertility | source word). Values accessed as fertility_table[fertility][source_word]. Used in model 3 and higher.
-
nltk.translate.ibm_model.IBMModel.p1
nltk.translate.ibm_model.IBMModel.html#p1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Probability that a generated word requires another target word that is aligned to NULL. Used in model 3 and higher.
-
nltk.translate.ibm_model.IBMModel.set_uniform_probabilities
nltk.translate.ibm_model.IBMModel.html#set_uniform_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Initialize probability tables to a uniform distribution
-
nltk.translate.ibm_model.IBMModel.init_vocab
nltk.translate.ibm_model.IBMModel.html#init_vocab
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.IBMModel.src_vocab
nltk.translate.ibm_model.IBMModel.html#src_vocab
ZopeInterfaceAttribute
Instance Variable
VISIBLE
set(str): All source language words used in training
-
nltk.translate.ibm_model.IBMModel.trg_vocab
nltk.translate.ibm_model.IBMModel.html#trg_vocab
ZopeInterfaceAttribute
Instance Variable
VISIBLE
set(str): All target language words used in training
-
nltk.translate.ibm_model.IBMModel.sample
nltk.translate.ibm_model.IBMModel.html#sample
ZopeInterfaceFunction
Method
VISIBLE
Sample the most probable alignments from the entire alignment space
-
nltk.translate.ibm_model.IBMModel.best_model2_alignment
nltk.translate.ibm_model.IBMModel.html#best_model2_alignment
ZopeInterfaceFunction
Method
VISIBLE
Finds the best alignment according to IBM Model 2
-
nltk.translate.ibm_model.IBMModel.hillclimb
nltk.translate.ibm_model.IBMModel.html#hillclimb
ZopeInterfaceFunction
Method
VISIBLE
Starting from the alignment in alignment_info, look at neighboring alignments iteratively for the best one
-
nltk.translate.ibm_model.IBMModel.neighboring
nltk.translate.ibm_model.IBMModel.html#neighboring
ZopeInterfaceFunction
Method
VISIBLE
Determine the neighbors of alignment_info, obtained by moving or swapping one alignment point
-
nltk.translate.ibm_model.IBMModel.maximize_lexical_translation_probabilities
nltk.translate.ibm_model.IBMModel.html#maximize_lexical_translation_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.IBMModel.maximize_fertility_probabilities
nltk.translate.ibm_model.IBMModel.html#maximize_fertility_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.IBMModel.maximize_null_generation_probabilities
nltk.translate.ibm_model.IBMModel.html#maximize_null_generation_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.IBMModel.prob_of_alignments
nltk.translate.ibm_model.IBMModel.html#prob_of_alignments
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.IBMModel.prob_t_a_given_s
nltk.translate.ibm_model.IBMModel.html#prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Probability of target sentence and an alignment given the source sentence
-
nltk.translate.ibm_model.AlignmentInfo
nltk.translate.ibm_model.AlignmentInfo.html
ZopeInterfaceClass
Class
VISIBLE
Helper data object for training IBM Models 3 and up
-
nltk.translate.ibm_model.AlignmentInfo.__init__
nltk.translate.ibm_model.AlignmentInfo.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.AlignmentInfo.alignment
nltk.translate.ibm_model.AlignmentInfo.html#alignment
ZopeInterfaceAttribute
Instance Variable
VISIBLE
tuple(int): Alignment function. alignment[j] is the position in the source sentence that is aligned to the position j in the target sentence.
-
nltk.translate.ibm_model.AlignmentInfo.src_sentence
nltk.translate.ibm_model.AlignmentInfo.html#src_sentence
ZopeInterfaceAttribute
Instance Variable
VISIBLE
tuple(str): Source sentence referred to by this object. Should include NULL token (None) in index 0.
-
nltk.translate.ibm_model.AlignmentInfo.trg_sentence
nltk.translate.ibm_model.AlignmentInfo.html#trg_sentence
ZopeInterfaceAttribute
Instance Variable
VISIBLE
tuple(str): Target sentence referred to by this object. Should have a dummy element in index 0 so that the first word starts from index 1.
-
nltk.translate.ibm_model.AlignmentInfo.cepts
nltk.translate.ibm_model.AlignmentInfo.html#cepts
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.translate.ibm_model.AlignmentInfo.score
nltk.translate.ibm_model.AlignmentInfo.html#score
ZopeInterfaceAttribute
Instance Variable
VISIBLE
float: Optional. Probability of alignment, as defined by the IBM model that assesses this alignment
-
nltk.translate.ibm_model.AlignmentInfo.fertility_of_i
nltk.translate.ibm_model.AlignmentInfo.html#fertility_of_i
ZopeInterfaceFunction
Method
VISIBLE
Fertility of word in position i of the source sentence
-
nltk.translate.ibm_model.AlignmentInfo.is_head_word
nltk.translate.ibm_model.AlignmentInfo.html#is_head_word
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.ibm_model.AlignmentInfo.center_of_cept
nltk.translate.ibm_model.AlignmentInfo.html#center_of_cept
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.ibm_model.AlignmentInfo.previous_cept
nltk.translate.ibm_model.AlignmentInfo.html#previous_cept
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.ibm_model.AlignmentInfo.previous_in_tablet
nltk.translate.ibm_model.AlignmentInfo.html#previous_in_tablet
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.ibm_model.AlignmentInfo.zero_indexed_alignment
nltk.translate.ibm_model.AlignmentInfo.html#zero_indexed_alignment
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.ibm_model.AlignmentInfo.__eq__
nltk.translate.ibm_model.AlignmentInfo.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.AlignmentInfo.__ne__
nltk.translate.ibm_model.AlignmentInfo.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.AlignmentInfo.__hash__
nltk.translate.ibm_model.AlignmentInfo.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts
nltk.translate.ibm_model.Counts.html
ZopeInterfaceClass
Class
VISIBLE
Data object to store counts of various parameters during training
-
nltk.translate.ibm_model.Counts.__init__
nltk.translate.ibm_model.Counts.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.t_given_s
nltk.translate.ibm_model.Counts.html#t_given_s
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.any_t_given_s
nltk.translate.ibm_model.Counts.html#any_t_given_s
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.p0
nltk.translate.ibm_model.Counts.html#p0
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.p1
nltk.translate.ibm_model.Counts.html#p1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.fertility
nltk.translate.ibm_model.Counts.html#fertility
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.fertility_for_any_phi
nltk.translate.ibm_model.Counts.html#fertility_for_any_phi
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.update_lexical_translation
nltk.translate.ibm_model.Counts.html#update_lexical_translation
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.update_null_generation
nltk.translate.ibm_model.Counts.html#update_null_generation
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm_model.Counts.update_fertility
nltk.translate.ibm_model.Counts.html#update_fertility
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm1.IBMModel1
nltk.translate.ibm1.IBMModel1.html
ZopeInterfaceClass
Class
VISIBLE
Lexical translation model that ignores word order
-
nltk.translate.ibm1.IBMModel1.__init__
nltk.translate.ibm1.IBMModel1.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Train on sentence_aligned_corpus and create a lexical translation model.
-
nltk.translate.ibm1.IBMModel1.translation_table
nltk.translate.ibm1.IBMModel1.html#translation_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm1.IBMModel1.set_uniform_probabilities
nltk.translate.ibm1.IBMModel1.html#set_uniform_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm1.IBMModel1.train
nltk.translate.ibm1.IBMModel1.html#train
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm1.IBMModel1.prob_all_alignments
nltk.translate.ibm1.IBMModel1.html#prob_all_alignments
ZopeInterfaceFunction
Method
VISIBLE
Computes the probability of all possible word alignments, expressed as a marginal distribution over target words t
-
nltk.translate.ibm1.IBMModel1.prob_alignment_point
nltk.translate.ibm1.IBMModel1.html#prob_alignment_point
ZopeInterfaceFunction
Method
VISIBLE
Probability that word t in the target sentence is aligned to word s in the source sentence
-
nltk.translate.ibm1.IBMModel1.prob_t_a_given_s
nltk.translate.ibm1.IBMModel1.html#prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Probability of target sentence and an alignment given the source sentence
-
nltk.translate.ibm1.IBMModel1.align_all
nltk.translate.ibm1.IBMModel1.html#align_all
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm1.IBMModel1.align
nltk.translate.ibm1.IBMModel1.html#align
ZopeInterfaceFunction
Method
VISIBLE
Determines the best word alignment for one sentence pair from the corpus that the model was trained on.
-
nltk.translate.ibm2.IBMModel2
nltk.translate.ibm2.IBMModel2.html
ZopeInterfaceClass
Class
VISIBLE
Lexical translation model that considers word order
-
nltk.translate.ibm2.IBMModel2.__init__
nltk.translate.ibm2.IBMModel2.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Train on sentence_aligned_corpus and create a lexical translation model and an alignment model.
-
nltk.translate.ibm2.IBMModel2.translation_table
nltk.translate.ibm2.IBMModel2.html#translation_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm2.IBMModel2.alignment_table
nltk.translate.ibm2.IBMModel2.html#alignment_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm2.IBMModel2.set_uniform_probabilities
nltk.translate.ibm2.IBMModel2.html#set_uniform_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm2.IBMModel2.train
nltk.translate.ibm2.IBMModel2.html#train
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm2.IBMModel2.maximize_alignment_probabilities
nltk.translate.ibm2.IBMModel2.html#maximize_alignment_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm2.IBMModel2.prob_all_alignments
nltk.translate.ibm2.IBMModel2.html#prob_all_alignments
ZopeInterfaceFunction
Method
VISIBLE
Computes the probability of all possible word alignments, expressed as a marginal distribution over target words t
-
nltk.translate.ibm2.IBMModel2.prob_alignment_point
nltk.translate.ibm2.IBMModel2.html#prob_alignment_point
ZopeInterfaceFunction
Method
VISIBLE
Probability that position j in trg_sentence is aligned to position i in the src_sentence
-
nltk.translate.ibm2.IBMModel2.prob_t_a_given_s
nltk.translate.ibm2.IBMModel2.html#prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Probability of target sentence and an alignment given the source sentence
-
nltk.translate.ibm2.IBMModel2.align_all
nltk.translate.ibm2.IBMModel2.html#align_all
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm2.IBMModel2.align
nltk.translate.ibm2.IBMModel2.html#align
ZopeInterfaceFunction
Method
VISIBLE
Determines the best word alignment for one sentence pair from the corpus that the model was trained on.
-
nltk.translate.ibm2.Model2Counts
nltk.translate.ibm2.Model2Counts.html
ZopeInterfaceClass
Class
VISIBLE
Data object to store counts of various parameters during training. Includes counts for alignment.
-
nltk.translate.ibm2.Model2Counts.__init__
nltk.translate.ibm2.Model2Counts.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm2.Model2Counts.alignment
nltk.translate.ibm2.Model2Counts.html#alignment
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm2.Model2Counts.alignment_for_any_i
nltk.translate.ibm2.Model2Counts.html#alignment_for_any_i
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm2.Model2Counts.update_lexical_translation
nltk.translate.ibm2.Model2Counts.html#update_lexical_translation
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm2.Model2Counts.update_alignment
nltk.translate.ibm2.Model2Counts.html#update_alignment
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3
nltk.translate.ibm3.IBMModel3.html
ZopeInterfaceClass
Class
VISIBLE
Translation model that considers how a word can be aligned to multiple words in another language
-
nltk.translate.ibm3.IBMModel3.__init__
nltk.translate.ibm3.IBMModel3.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Train on sentence_aligned_corpus and create a lexical translation model, a distortion model, a fertility model, and a model for generating NULL-aligned words.
-
nltk.translate.ibm3.IBMModel3.translation_table
nltk.translate.ibm3.IBMModel3.html#translation_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3.alignment_table
nltk.translate.ibm3.IBMModel3.html#alignment_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3.fertility_table
nltk.translate.ibm3.IBMModel3.html#fertility_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3.p1
nltk.translate.ibm3.IBMModel3.html#p1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3.distortion_table
nltk.translate.ibm3.IBMModel3.html#distortion_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
dict[int][int][int][int]: float. Probability(j | i,l,m). Values accessed as distortion_table[j][i][l][m].
-
nltk.translate.ibm3.IBMModel3.reset_probabilities
nltk.translate.ibm3.IBMModel3.html#reset_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3.set_uniform_probabilities
nltk.translate.ibm3.IBMModel3.html#set_uniform_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3.train
nltk.translate.ibm3.IBMModel3.html#train
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3.maximize_distortion_probabilities
nltk.translate.ibm3.IBMModel3.html#maximize_distortion_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm3.IBMModel3.prob_t_a_given_s
nltk.translate.ibm3.IBMModel3.html#prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Probability of target sentence and an alignment given the source sentence
-
nltk.translate.ibm3.Model3Counts
nltk.translate.ibm3.Model3Counts.html
ZopeInterfaceClass
Class
VISIBLE
Data object to store counts of various parameters during training. Includes counts for distortion.
-
nltk.translate.ibm3.Model3Counts.__init__
nltk.translate.ibm3.Model3Counts.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm3.Model3Counts.distortion
nltk.translate.ibm3.Model3Counts.html#distortion
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm3.Model3Counts.distortion_for_any_j
nltk.translate.ibm3.Model3Counts.html#distortion_for_any_j
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm3.Model3Counts.update_distortion
nltk.translate.ibm3.Model3Counts.html#update_distortion
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4
nltk.translate.ibm4.IBMModel4.html
ZopeInterfaceClass
Class
VISIBLE
Translation model that reorders output words based on their type and their distance from other related words in the output sentence
-
nltk.translate.ibm4.IBMModel4.__init__
nltk.translate.ibm4.IBMModel4.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Train on sentence_aligned_corpus and create a lexical translation model, distortion models, a fertility model, and a model for generating NULL-aligned words.
-
nltk.translate.ibm4.IBMModel4.src_classes
nltk.translate.ibm4.IBMModel4.html#src_classes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.trg_classes
nltk.translate.ibm4.IBMModel4.html#trg_classes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.translation_table
nltk.translate.ibm4.IBMModel4.html#translation_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.alignment_table
nltk.translate.ibm4.IBMModel4.html#alignment_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.fertility_table
nltk.translate.ibm4.IBMModel4.html#fertility_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.p1
nltk.translate.ibm4.IBMModel4.html#p1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.head_distortion_table
nltk.translate.ibm4.IBMModel4.html#head_distortion_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
dict[int][int][int]: float. Probability(displacement of head word | word class of previous cept,target word class). Values accessed as distortion_table[dj][src_class][trg_class].
-
nltk.translate.ibm4.IBMModel4.non_head_distortion_table
nltk.translate.ibm4.IBMModel4.html#non_head_distortion_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
dict[int][int]: float. Probability(displacement of non-head word | target word class). Values accessed as distortion_table[dj][trg_class].
-
nltk.translate.ibm4.IBMModel4.reset_probabilities
nltk.translate.ibm4.IBMModel4.html#reset_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.set_uniform_probabilities
nltk.translate.ibm4.IBMModel4.html#set_uniform_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Set distortion probabilities uniformly to 1 / cardinality of displacement values
-
nltk.translate.ibm4.IBMModel4.train
nltk.translate.ibm4.IBMModel4.html#train
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.maximize_distortion_probabilities
nltk.translate.ibm4.IBMModel4.html#maximize_distortion_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm4.IBMModel4.prob_t_a_given_s
nltk.translate.ibm4.IBMModel4.html#prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Probability of target sentence and an alignment given the source sentence
-
nltk.translate.ibm4.IBMModel4.model4_prob_t_a_given_s
nltk.translate.ibm4.IBMModel4.html#model4_prob_t_a_given_s
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.translate.ibm4.Model4Counts
nltk.translate.ibm4.Model4Counts.html
ZopeInterfaceClass
Class
VISIBLE
Data object to store counts of various parameters during training. Includes counts for distortion.
-
nltk.translate.ibm4.Model4Counts.__init__
nltk.translate.ibm4.Model4Counts.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm4.Model4Counts.head_distortion
nltk.translate.ibm4.Model4Counts.html#head_distortion
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.Model4Counts.head_distortion_for_any_dj
nltk.translate.ibm4.Model4Counts.html#head_distortion_for_any_dj
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.Model4Counts.non_head_distortion
nltk.translate.ibm4.Model4Counts.html#non_head_distortion
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.Model4Counts.non_head_distortion_for_any_dj
nltk.translate.ibm4.Model4Counts.html#non_head_distortion_for_any_dj
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm4.Model4Counts.update_distortion
nltk.translate.ibm4.Model4Counts.html#update_distortion
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5
nltk.translate.ibm5.IBMModel5.html
ZopeInterfaceClass
Class
VISIBLE
Translation model that keeps track of vacant positions in the target sentence to decide where to place translated words
-
nltk.translate.ibm5.IBMModel5.MIN_SCORE_FACTOR
nltk.translate.ibm5.IBMModel5.html#MIN_SCORE_FACTOR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Alignments with scores below this factor are pruned during sampling
-
nltk.translate.ibm5.IBMModel5.__init__
nltk.translate.ibm5.IBMModel5.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Train on sentence_aligned_corpus and create a lexical translation model, vacancy models, a fertility model, and a model for generating NULL-aligned words.
-
nltk.translate.ibm5.IBMModel5.src_classes
nltk.translate.ibm5.IBMModel5.html#src_classes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.trg_classes
nltk.translate.ibm5.IBMModel5.html#trg_classes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.translation_table
nltk.translate.ibm5.IBMModel5.html#translation_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.alignment_table
nltk.translate.ibm5.IBMModel5.html#alignment_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.fertility_table
nltk.translate.ibm5.IBMModel5.html#fertility_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.p1
nltk.translate.ibm5.IBMModel5.html#p1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.head_distortion_table
nltk.translate.ibm5.IBMModel5.html#head_distortion_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.non_head_distortion_table
nltk.translate.ibm5.IBMModel5.html#non_head_distortion_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.head_vacancy_table
nltk.translate.ibm5.IBMModel5.html#head_vacancy_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
dict[int][int][int]: float. Probability(vacancy difference | number of remaining valid positions,target word class). Values accessed as head_vacancy_table[dv][v_max][trg_class].
-
nltk.translate.ibm5.IBMModel5.non_head_vacancy_table
nltk.translate.ibm5.IBMModel5.html#non_head_vacancy_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
dict[int][int][int]: float. Probability(vacancy difference | number of remaining valid positions,target word class). Values accessed as non_head_vacancy_table[dv][v_max][trg_class].
-
nltk.translate.ibm5.IBMModel5.reset_probabilities
nltk.translate.ibm5.IBMModel5.html#reset_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.set_uniform_probabilities
nltk.translate.ibm5.IBMModel5.html#set_uniform_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Set vacancy probabilities uniformly to 1 / cardinality of vacancy difference values
-
nltk.translate.ibm5.IBMModel5.train
nltk.translate.ibm5.IBMModel5.html#train
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm5.IBMModel5.sample
nltk.translate.ibm5.IBMModel5.html#sample
ZopeInterfaceFunction
Method
VISIBLE
Sample the most probable alignments from the entire alignment space according to Model 4
-
nltk.translate.ibm5.IBMModel5.prune
nltk.translate.ibm5.IBMModel5.html#prune
ZopeInterfaceFunction
Method
VISIBLE
Removes alignments from alignment_infos that have substantially lower Model 4 scores than the best alignment
-
nltk.translate.ibm5.IBMModel5.hillclimb
nltk.translate.ibm5.IBMModel5.html#hillclimb
ZopeInterfaceFunction
Method
VISIBLE
Starting from the alignment in alignment_info, look at neighboring alignments iteratively for the best one, according to Model 4
-
nltk.translate.ibm5.IBMModel5.prob_t_a_given_s
nltk.translate.ibm5.IBMModel5.html#prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Probability of target sentence and an alignment given the source sentence
-
nltk.translate.ibm5.IBMModel5.maximize_vacancy_probabilities
nltk.translate.ibm5.IBMModel5.html#maximize_vacancy_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm5.Model5Counts
nltk.translate.ibm5.Model5Counts.html
ZopeInterfaceClass
Class
VISIBLE
Data object to store counts of various parameters during training. Includes counts for vacancies.
-
nltk.translate.ibm5.Model5Counts.__init__
nltk.translate.ibm5.Model5Counts.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm5.Model5Counts.head_vacancy
nltk.translate.ibm5.Model5Counts.html#head_vacancy
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.Model5Counts.head_vacancy_for_any_dv
nltk.translate.ibm5.Model5Counts.html#head_vacancy_for_any_dv
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.Model5Counts.non_head_vacancy
nltk.translate.ibm5.Model5Counts.html#non_head_vacancy
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.Model5Counts.non_head_vacancy_for_any_dv
nltk.translate.ibm5.Model5Counts.html#non_head_vacancy_for_any_dv
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.ibm5.Model5Counts.update_vacancy
nltk.translate.ibm5.Model5Counts.html#update_vacancy
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.translate.ibm5.Slots
nltk.translate.ibm5.Slots.html
ZopeInterfaceClass
Class
VISIBLE
Represents positions in a target sentence. Used to keep track of which slot (position) is occupied.
-
nltk.translate.ibm5.Slots.__init__
nltk.translate.ibm5.Slots.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.ibm5.Slots._slots
nltk.translate.ibm5.Slots.html#_slots
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.ibm5.Slots.occupy
nltk.translate.ibm5.Slots.html#occupy
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.ibm5.Slots.vacancies_at
nltk.translate.ibm5.Slots.html#vacancies_at
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.ibm5.Slots.__len__
nltk.translate.ibm5.Slots.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.bleu_score.sentence_bleu
nltk.translate.bleu_score.html#sentence_bleu
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.bleu_score.corpus_bleu
nltk.translate.bleu_score.html#corpus_bleu
ZopeInterfaceFunction
Function
VISIBLE
Calculate a single corpus-level BLEU score (aka. system-level BLEU) for all the hypotheses and their respective references.
-
nltk.translate.bleu_score.modified_precision
nltk.translate.bleu_score.html#modified_precision
ZopeInterfaceFunction
Function
VISIBLE
Calculate modified ngram precision.
-
nltk.translate.bleu_score.closest_ref_length
nltk.translate.bleu_score.html#closest_ref_length
ZopeInterfaceFunction
Function
VISIBLE
This function finds the reference that is the closest length to the hypothesis. The closest reference length is referred to as r variable from the brevity penalty formula in Papineni et. al. (2002)
-
nltk.translate.bleu_score.brevity_penalty
nltk.translate.bleu_score.html#brevity_penalty
ZopeInterfaceFunction
Function
VISIBLE
Calculate brevity penalty.
-
nltk.translate.bleu_score.SmoothingFunction
nltk.translate.bleu_score.SmoothingFunction.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.translate.bleu_score.SmoothingFunction.__init__
nltk.translate.bleu_score.SmoothingFunction.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
This will initialize the parameters required for the various smoothing techniques, the default values are set to the numbers used in the experiments from Chen and Cherry (2014).
-
nltk.translate.bleu_score.SmoothingFunction.epsilon
nltk.translate.bleu_score.SmoothingFunction.html#epsilon
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.bleu_score.SmoothingFunction.alpha
nltk.translate.bleu_score.SmoothingFunction.html#alpha
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.bleu_score.SmoothingFunction.k
nltk.translate.bleu_score.SmoothingFunction.html#k
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.bleu_score.SmoothingFunction.method0
nltk.translate.bleu_score.SmoothingFunction.html#method0
ZopeInterfaceFunction
Method
VISIBLE
No smoothing.
-
nltk.translate.bleu_score.SmoothingFunction.method1
nltk.translate.bleu_score.SmoothingFunction.html#method1
ZopeInterfaceFunction
Method
VISIBLE
Smoothing method 1: Add epsilon counts to precision with 0 counts.
-
nltk.translate.bleu_score.SmoothingFunction.method2
nltk.translate.bleu_score.SmoothingFunction.html#method2
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.translate.bleu_score.SmoothingFunction.method3
nltk.translate.bleu_score.SmoothingFunction.html#method3
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.translate.bleu_score.SmoothingFunction.method4
nltk.translate.bleu_score.SmoothingFunction.html#method4
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.translate.bleu_score.SmoothingFunction.method5
nltk.translate.bleu_score.SmoothingFunction.html#method5
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.translate.bleu_score.SmoothingFunction.method6
nltk.translate.bleu_score.SmoothingFunction.html#method6
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.translate.bleu_score.SmoothingFunction.method7
nltk.translate.bleu_score.SmoothingFunction.html#method7
ZopeInterfaceFunction
Method
VISIBLE
Smoothing method 7: Interpolates methods 4 and 5.
-
nltk.translate.ribes_score.sentence_ribes
nltk.translate.ribes_score.html#sentence_ribes
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.ribes_score.corpus_ribes
nltk.translate.ribes_score.html#corpus_ribes
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.ribes_score.position_of_ngram
nltk.translate.ribes_score.html#position_of_ngram
ZopeInterfaceFunction
Function
VISIBLE
This function returns the position of the first instance of the ngram appearing in a sentence.
-
nltk.translate.ribes_score.word_rank_alignment
nltk.translate.ribes_score.html#word_rank_alignment
ZopeInterfaceFunction
Function
VISIBLE
This is the word rank alignment algorithm described in the paper to produce the worder list, i.e. a list of word indices of the hypothesis word orders w.r.t. the list of reference words.
-
nltk.translate.ribes_score.find_increasing_sequences
nltk.translate.ribes_score.html#find_increasing_sequences
ZopeInterfaceFunction
Function
VISIBLE
Given the worder list, this function groups monotonic +1 sequences.
-
nltk.translate.ribes_score.kendall_tau
nltk.translate.ribes_score.html#kendall_tau
ZopeInterfaceFunction
Function
VISIBLE
Calculates the Kendall's Tau correlation coefficient given the worder list of word alignments from word_rank_alignment(), using the formula:
-
nltk.translate.ribes_score.spearman_rho
nltk.translate.ribes_score.html#spearman_rho
ZopeInterfaceFunction
Function
VISIBLE
Calculates the Spearman's Rho correlation coefficient given the worder list of word alignment from word_rank_alignment(), using the formula:
-
nltk.stem.api.StemmerI
nltk.stem.api.StemmerI.html
ZopeInterfaceClass
Class
VISIBLE
A processing interface for removing morphological affixes from words. This process is known as stemming.
-
nltk.stem.api.StemmerI.stem
nltk.stem.api.StemmerI.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Strip affixes from the token and return the stem.
-
nltk.stem.porter.PorterStemmer
nltk.stem.porter.PorterStemmer.html
ZopeInterfaceClass
Class
VISIBLE
A word stemmer based on the Porter stemming algorithm.
-
nltk.stem.porter.PorterStemmer.NLTK_EXTENSIONS
nltk.stem.porter.PorterStemmer.html#NLTK_EXTENSIONS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.porter.PorterStemmer.MARTIN_EXTENSIONS
nltk.stem.porter.PorterStemmer.html#MARTIN_EXTENSIONS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.porter.PorterStemmer.ORIGINAL_ALGORITHM
nltk.stem.porter.PorterStemmer.html#ORIGINAL_ALGORITHM
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.porter.PorterStemmer.__init__
nltk.stem.porter.PorterStemmer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.porter.PorterStemmer.mode
nltk.stem.porter.PorterStemmer.html#mode
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.porter.PorterStemmer.pool
nltk.stem.porter.PorterStemmer.html#pool
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.porter.PorterStemmer.vowels
nltk.stem.porter.PorterStemmer.html#vowels
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.porter.PorterStemmer._is_consonant
nltk.stem.porter.PorterStemmer.html#_is_consonant
ZopeInterfaceFunction
Method
PRIVATE
Returns True if word[i] is a consonant, False otherwise
-
nltk.stem.porter.PorterStemmer._measure
nltk.stem.porter.PorterStemmer.html#_measure
ZopeInterfaceFunction
Method
PRIVATE
Returns the 'measure' of stem, per definition in the paper
-
nltk.stem.porter.PorterStemmer._has_positive_measure
nltk.stem.porter.PorterStemmer.html#_has_positive_measure
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.porter.PorterStemmer._contains_vowel
nltk.stem.porter.PorterStemmer.html#_contains_vowel
ZopeInterfaceFunction
Method
PRIVATE
Returns True if stem contains a vowel, else False
-
nltk.stem.porter.PorterStemmer._ends_double_consonant
nltk.stem.porter.PorterStemmer.html#_ends_double_consonant
ZopeInterfaceFunction
Method
PRIVATE
Implements condition *d from the paper
-
nltk.stem.porter.PorterStemmer._ends_cvc
nltk.stem.porter.PorterStemmer.html#_ends_cvc
ZopeInterfaceFunction
Method
PRIVATE
Implements condition *o from the paper
-
nltk.stem.porter.PorterStemmer._replace_suffix
nltk.stem.porter.PorterStemmer.html#_replace_suffix
ZopeInterfaceFunction
Method
PRIVATE
Replaces `suffix` of `word` with `replacement
-
nltk.stem.porter.PorterStemmer._apply_rule_list
nltk.stem.porter.PorterStemmer.html#_apply_rule_list
ZopeInterfaceFunction
Method
PRIVATE
Applies the first applicable suffix-removal rule to the word
-
nltk.stem.porter.PorterStemmer._step1a
nltk.stem.porter.PorterStemmer.html#_step1a
ZopeInterfaceFunction
Method
PRIVATE
Implements Step 1a from "An algorithm for suffix stripping"
-
nltk.stem.porter.PorterStemmer._step1b
nltk.stem.porter.PorterStemmer.html#_step1b
ZopeInterfaceFunction
Method
PRIVATE
Implements Step 1b from "An algorithm for suffix stripping"
-
nltk.stem.porter.PorterStemmer._step1c
nltk.stem.porter.PorterStemmer.html#_step1c
ZopeInterfaceFunction
Method
PRIVATE
Implements Step 1c from "An algorithm for suffix stripping"
-
nltk.stem.porter.PorterStemmer._step2
nltk.stem.porter.PorterStemmer.html#_step2
ZopeInterfaceFunction
Method
PRIVATE
Implements Step 2 from "An algorithm for suffix stripping"
-
nltk.stem.porter.PorterStemmer._step3
nltk.stem.porter.PorterStemmer.html#_step3
ZopeInterfaceFunction
Method
PRIVATE
Implements Step 3 from "An algorithm for suffix stripping"
-
nltk.stem.porter.PorterStemmer._step4
nltk.stem.porter.PorterStemmer.html#_step4
ZopeInterfaceFunction
Method
PRIVATE
Implements Step 4 from "An algorithm for suffix stripping"
-
nltk.stem.porter.PorterStemmer._step5a
nltk.stem.porter.PorterStemmer.html#_step5a
ZopeInterfaceFunction
Method
PRIVATE
Implements Step 5a from "An algorithm for suffix stripping"
-
nltk.stem.porter.PorterStemmer._step5b
nltk.stem.porter.PorterStemmer.html#_step5b
ZopeInterfaceFunction
Method
PRIVATE
Implements Step 5a from "An algorithm for suffix stripping"
-
nltk.stem.porter.PorterStemmer.stem
nltk.stem.porter.PorterStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
:param to_lowercase: if `to_lowercase=True` the word always lowercase
-
nltk.stem.porter.PorterStemmer.__repr__
nltk.stem.porter.PorterStemmer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.porter.demo
nltk.stem.porter.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration of the porter stemmer on a sample from the Penn Treebank corpus.
-
nltk.translate.meteor_score._generate_enums
nltk.translate.meteor_score.html#_generate_enums
ZopeInterfaceFunction
Function
PRIVATE
Takes in string inputs for hypothesis and reference and returns enumerated word lists for each of them
-
nltk.translate.meteor_score.exact_match
nltk.translate.meteor_score.html#exact_match
ZopeInterfaceFunction
Function
VISIBLE
matches exact words in hypothesis and reference and returns a word mapping based on the enumerated word id between hypothesis and reference
-
nltk.translate.meteor_score._match_enums
nltk.translate.meteor_score.html#_match_enums
ZopeInterfaceFunction
Function
PRIVATE
matches exact words in hypothesis and reference and returns a word mapping between enum_hypothesis_list and enum_reference_list based on the enumerated word id.
-
nltk.translate.meteor_score._enum_stem_match
nltk.translate.meteor_score.html#_enum_stem_match
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.translate.meteor_score.stem_match
nltk.translate.meteor_score.html#stem_match
ZopeInterfaceFunction
Function
VISIBLE
Stems each word and matches them in hypothesis and reference and returns a word mapping between hypothesis and reference
-
nltk.translate.meteor_score._enum_wordnetsyn_match
nltk.translate.meteor_score.html#_enum_wordnetsyn_match
ZopeInterfaceFunction
Function
PRIVATE
Matches each word in reference to a word in hypothesis if any synonym of a hypothesis word is the exact match to the reference word.
-
nltk.translate.meteor_score.wordnetsyn_match
nltk.translate.meteor_score.html#wordnetsyn_match
ZopeInterfaceFunction
Function
VISIBLE
Matches each word in reference to a word in hypothesis if any synonym of a hypothesis word is the exact match to the reference word.
-
nltk.translate.meteor_score._enum_allign_words
nltk.translate.meteor_score.html#_enum_allign_words
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.translate.meteor_score.allign_words
nltk.translate.meteor_score.html#allign_words
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.meteor_score._count_chunks
nltk.translate.meteor_score.html#_count_chunks
ZopeInterfaceFunction
Function
PRIVATE
Counts the fewest possible number of chunks such that matched unigrams of each chunk are adjacent to each other. This is used to caluclate the fragmentation part of the metric.
-
nltk.translate.meteor_score.single_meteor_score
nltk.translate.meteor_score.html#single_meteor_score
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.meteor_score.meteor_score
nltk.translate.meteor_score.html#meteor_score
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.metrics.alignment_error_rate
nltk.translate.metrics.html#alignment_error_rate
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.stack_decoder.StackDecoder
nltk.translate.stack_decoder.StackDecoder.html
ZopeInterfaceClass
Class
VISIBLE
Phrase-based stack decoder for machine translation
-
nltk.translate.stack_decoder.StackDecoder.__init__
nltk.translate.stack_decoder.StackDecoder.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.stack_decoder.StackDecoder.phrase_table
nltk.translate.stack_decoder.StackDecoder.html#phrase_table
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder.StackDecoder.language_model
nltk.translate.stack_decoder.StackDecoder.html#language_model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder.StackDecoder.word_penalty
nltk.translate.stack_decoder.StackDecoder.html#word_penalty
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.translate.stack_decoder.StackDecoder.beam_threshold
nltk.translate.stack_decoder.StackDecoder.html#beam_threshold
ZopeInterfaceAttribute
Instance Variable
VISIBLE
float: Hypotheses that score below this factor of the best hypothesis in a stack are dropped from consideration. Value between 0.0 and 1.0.
-
nltk.translate.stack_decoder.StackDecoder.stack_size
nltk.translate.stack_decoder.StackDecoder.html#stack_size
ZopeInterfaceAttribute
Instance Variable
VISIBLE
int: Maximum number of hypotheses to consider in a stack. Higher values increase the likelihood of a good translation, but increases processing time.
-
nltk.translate.stack_decoder.StackDecoder.__distortion_factor
nltk.translate.stack_decoder.StackDecoder.html#__distortion_factor
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.stack_decoder.StackDecoder.distortion_factor
nltk.translate.stack_decoder.StackDecoder.html#distortion_factor
ZopeInterfaceAttribute
Property
VISIBLE
No summary
-
nltk.translate.stack_decoder.StackDecoder.distortion_factor.setter
nltk.translate.stack_decoder.StackDecoder.html#distortion_factor.setter
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.stack_decoder.StackDecoder.__compute_log_distortion
nltk.translate.stack_decoder.StackDecoder.html#__compute_log_distortion
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.translate.stack_decoder.StackDecoder.__log_distortion_factor
nltk.translate.stack_decoder.StackDecoder.html#__log_distortion_factor
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.stack_decoder.StackDecoder.translate
nltk.translate.stack_decoder.StackDecoder.html#translate
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.stack_decoder.StackDecoder.find_all_src_phrases
nltk.translate.stack_decoder.StackDecoder.html#find_all_src_phrases
ZopeInterfaceFunction
Method
VISIBLE
Finds all subsequences in src_sentence that have a phrase translation in the translation table
-
nltk.translate.stack_decoder.StackDecoder.compute_future_scores
nltk.translate.stack_decoder.StackDecoder.html#compute_future_scores
ZopeInterfaceFunction
Method
VISIBLE
Determines the approximate scores for translating every subsequence in src_sentence
-
nltk.translate.stack_decoder.StackDecoder.future_score
nltk.translate.stack_decoder.StackDecoder.html#future_score
ZopeInterfaceFunction
Method
VISIBLE
Determines the approximate score for translating the untranslated words in hypothesis
-
nltk.translate.stack_decoder.StackDecoder.expansion_score
nltk.translate.stack_decoder.StackDecoder.html#expansion_score
ZopeInterfaceFunction
Method
VISIBLE
Calculate the score of expanding hypothesis with translation_option
-
nltk.translate.stack_decoder.StackDecoder.distortion_score
nltk.translate.stack_decoder.StackDecoder.html#distortion_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.stack_decoder.StackDecoder.valid_phrases
nltk.translate.stack_decoder.StackDecoder.html#valid_phrases
ZopeInterfaceFunction
Static Method
VISIBLE
Extract phrases from all_phrases_from that contains words that have not been translated by hypothesis
-
nltk.translate.stack_decoder._Hypothesis
nltk.translate.stack_decoder._Hypothesis.html
ZopeInterfaceClass
Class
PRIVATE
Partial solution to a translation.
-
nltk.translate.stack_decoder._Hypothesis.__init__
nltk.translate.stack_decoder._Hypothesis.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.stack_decoder._Hypothesis.raw_score
nltk.translate.stack_decoder._Hypothesis.html#raw_score
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Hypothesis.src_phrase_span
nltk.translate.stack_decoder._Hypothesis.html#src_phrase_span
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Hypothesis.trg_phrase
nltk.translate.stack_decoder._Hypothesis.html#trg_phrase
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Hypothesis.previous
nltk.translate.stack_decoder._Hypothesis.html#previous
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Hypothesis.future_score
nltk.translate.stack_decoder._Hypothesis.html#future_score
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Hypothesis.score
nltk.translate.stack_decoder._Hypothesis.html#score
ZopeInterfaceFunction
Method
VISIBLE
Overall score of hypothesis after accounting for local and global features
-
nltk.translate.stack_decoder._Hypothesis.untranslated_spans
nltk.translate.stack_decoder._Hypothesis.html#untranslated_spans
ZopeInterfaceFunction
Method
VISIBLE
Starting from each untranslated word, find the longest continuous span of untranslated positions
-
nltk.translate.stack_decoder._Hypothesis.translated_positions
nltk.translate.stack_decoder._Hypothesis.html#translated_positions
ZopeInterfaceFunction
Method
VISIBLE
List of positions in the source sentence of words already translated. The list is not sorted.
-
nltk.translate.stack_decoder._Hypothesis.total_translated_words
nltk.translate.stack_decoder._Hypothesis.html#total_translated_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Hypothesis.translation_so_far
nltk.translate.stack_decoder._Hypothesis.html#translation_so_far
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Hypothesis.__build_translation
nltk.translate.stack_decoder._Hypothesis.html#__build_translation
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.translate.stack_decoder._Stack
nltk.translate.stack_decoder._Stack.html
ZopeInterfaceClass
Class
PRIVATE
Collection of _Hypothesis objects
-
nltk.translate.stack_decoder._Stack.__init__
nltk.translate.stack_decoder._Stack.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.translate.stack_decoder._Stack.max_size
nltk.translate.stack_decoder._Stack.html#max_size
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Stack.items
nltk.translate.stack_decoder._Stack.html#items
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Stack.__log_beam_threshold
nltk.translate.stack_decoder._Stack.html#__log_beam_threshold
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.translate.stack_decoder._Stack.push
nltk.translate.stack_decoder._Stack.html#push
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.translate.stack_decoder._Stack.threshold_prune
nltk.translate.stack_decoder._Stack.html#threshold_prune
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Stack.best
nltk.translate.stack_decoder._Stack.html#best
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.translate.stack_decoder._Stack.__iter__
nltk.translate.stack_decoder._Stack.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Stack.__contains__
nltk.translate.stack_decoder._Stack.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.stack_decoder._Stack.__bool__
nltk.translate.stack_decoder._Stack.html#__bool__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.translate.nist_score.sentence_nist
nltk.translate.nist_score.html#sentence_nist
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.nist_score.corpus_nist
nltk.translate.nist_score.html#corpus_nist
ZopeInterfaceFunction
Function
VISIBLE
Calculate a single corpus-level NIST score (aka. system-level BLEU) for all the hypotheses and their respective references.
-
nltk.translate.nist_score.nist_length_penalty
nltk.translate.nist_score.html#nist_length_penalty
ZopeInterfaceFunction
Function
VISIBLE
Calculates the NIST length penalty, from Eq. 3 in Doddington (2002)
-
nltk.translate.chrf_score.sentence_chrf
nltk.translate.chrf_score.html#sentence_chrf
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.translate.chrf_score._preprocess
nltk.translate.chrf_score.html#_preprocess
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.translate.chrf_score.chrf_precision_recall_fscore_support
nltk.translate.chrf_score.html#chrf_precision_recall_fscore_support
ZopeInterfaceFunction
Function
VISIBLE
This function computes the precision, recall and fscore from the ngram overlaps. It returns the support which is the true positive score.
-
nltk.translate.chrf_score.corpus_chrf
nltk.translate.chrf_score.html#corpus_chrf
ZopeInterfaceFunction
Function
VISIBLE
Calculates the corpus level CHRF (Character n-gram F-score), it is the macro-averaged value of the sentence/segment level CHRF score.
-
nltk.translate.gale_church.erfcc
nltk.translate.gale_church.html#erfcc
ZopeInterfaceFunction
Function
VISIBLE
Complementary error function.
-
nltk.translate.gale_church.norm_cdf
nltk.translate.gale_church.html#norm_cdf
ZopeInterfaceFunction
Function
VISIBLE
Return the area under the normal distribution from M{-∞..x}.
-
nltk.translate.gale_church.norm_logsf
nltk.translate.gale_church.html#norm_logsf
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.translate.gale_church.LOG2
nltk.translate.gale_church.html#LOG2
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.translate.gale_church.LanguageIndependent
nltk.translate.gale_church.LanguageIndependent.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.translate.gale_church.LanguageIndependent.PRIORS
nltk.translate.gale_church.LanguageIndependent.html#PRIORS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.translate.gale_church.LanguageIndependent.AVERAGE_CHARACTERS
nltk.translate.gale_church.LanguageIndependent.html#AVERAGE_CHARACTERS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.translate.gale_church.LanguageIndependent.VARIANCE_CHARACTERS
nltk.translate.gale_church.LanguageIndependent.html#VARIANCE_CHARACTERS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.translate.gale_church.trace
nltk.translate.gale_church.html#trace
ZopeInterfaceFunction
Function
VISIBLE
Traverse the alignment cost from the tracebacks and retrieves appropriate sentence pairs.
-
nltk.translate.gale_church.align_log_prob
nltk.translate.gale_church.html#align_log_prob
ZopeInterfaceFunction
Function
VISIBLE
Returns the log probability of the two sentences C{source_sents[i]}, C{target_sents[j]} being aligned with a specific C{alignment}.
-
nltk.translate.gale_church.align_blocks
nltk.translate.gale_church.html#align_blocks
ZopeInterfaceFunction
Function
VISIBLE
Return the sentence alignment of two text blocks (usually paragraphs).
-
nltk.translate.gale_church.align_texts
nltk.translate.gale_church.html#align_texts
ZopeInterfaceFunction
Function
VISIBLE
Creates the sentence alignment of two texts.
-
nltk.translate.gale_church.split_at
nltk.translate.gale_church.html#split_at
ZopeInterfaceFunction
Function
VISIBLE
Splits an iterator C{it} at values of C{split_value}.
-
nltk.translate.gale_church.parse_token_stream
nltk.translate.gale_church.html#parse_token_stream
ZopeInterfaceFunction
Function
VISIBLE
Parses a stream of tokens and splits it into sentences (using C{soft_delimiter} tokens) and blocks (using C{hard_delimiter} tokens) for use with the L{align_texts} function.
-
nltk.translate.gdfa.grow_diag_final_and
nltk.translate.gdfa.html#grow_diag_final_and
ZopeInterfaceFunction
Function
VISIBLE
This module symmetrisatizes the source-to-target and target-to-source word alignment output and produces, aka. GDFA algorithm (Koehn, 2005).
-
nltk.translate.gleu_score.sentence_gleu
nltk.translate.gleu_score.html#sentence_gleu
ZopeInterfaceFunction
Function
VISIBLE
Calculates the sentence level GLEU (Google-BLEU) score described in
-
nltk.translate.gleu_score.corpus_gleu
nltk.translate.gleu_score.html#corpus_gleu
ZopeInterfaceFunction
Function
VISIBLE
Calculate a single corpus-level GLEU score (aka. system-level GLEU) for all the hypotheses and their respective references.
-
nltk.stem.regexp.RegexpStemmer
nltk.stem.regexp.RegexpStemmer.html
ZopeInterfaceClass
Class
VISIBLE
A stemmer that uses regular expressions to identify morphological affixes. Any substrings that match the regular expressions will be removed.
-
nltk.stem.regexp.RegexpStemmer.__init__
nltk.stem.regexp.RegexpStemmer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.regexp.RegexpStemmer._regexp
nltk.stem.regexp.RegexpStemmer.html#_regexp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.stem.regexp.RegexpStemmer._min
nltk.stem.regexp.RegexpStemmer.html#_min
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.stem.regexp.RegexpStemmer.stem
nltk.stem.regexp.RegexpStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Strip affixes from the token and return the stem.
-
nltk.stem.regexp.RegexpStemmer.__repr__
nltk.stem.regexp.RegexpStemmer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.lancaster.LancasterStemmer
nltk.stem.lancaster.LancasterStemmer.html
ZopeInterfaceClass
Class
VISIBLE
Lancaster Stemmer
-
nltk.stem.lancaster.LancasterStemmer.default_rule_tuple
nltk.stem.lancaster.LancasterStemmer.html#default_rule_tuple
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.lancaster.LancasterStemmer.__init__
nltk.stem.lancaster.LancasterStemmer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create an instance of the Lancaster stemmer.
-
nltk.stem.lancaster.LancasterStemmer.rule_dictionary
nltk.stem.lancaster.LancasterStemmer.html#rule_dictionary
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.lancaster.LancasterStemmer._strip_prefix
nltk.stem.lancaster.LancasterStemmer.html#_strip_prefix
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.stem.lancaster.LancasterStemmer._rule_tuple
nltk.stem.lancaster.LancasterStemmer.html#_rule_tuple
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.stem.lancaster.LancasterStemmer.parseRules
nltk.stem.lancaster.LancasterStemmer.html#parseRules
ZopeInterfaceFunction
Method
VISIBLE
Validate the set of rules used in this stemmer.
-
nltk.stem.lancaster.LancasterStemmer.stem
nltk.stem.lancaster.LancasterStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a word using the Lancaster stemmer.
-
nltk.stem.lancaster.LancasterStemmer.__doStemming
nltk.stem.lancaster.LancasterStemmer.html#__doStemming
ZopeInterfaceFunction
Method
PRIVATE
Perform the actual word stemming
-
nltk.stem.lancaster.LancasterStemmer.__getLastLetter
nltk.stem.lancaster.LancasterStemmer.html#__getLastLetter
ZopeInterfaceFunction
Method
PRIVATE
Get the zero-based index of the last alphabetic character in this string
-
nltk.stem.lancaster.LancasterStemmer.__isAcceptable
nltk.stem.lancaster.LancasterStemmer.html#__isAcceptable
ZopeInterfaceFunction
Method
PRIVATE
Determine if the word is acceptable for stemming.
-
nltk.stem.lancaster.LancasterStemmer.__applyRule
nltk.stem.lancaster.LancasterStemmer.html#__applyRule
ZopeInterfaceFunction
Method
PRIVATE
Apply the stemming rule to the word
-
nltk.stem.lancaster.LancasterStemmer.__stripPrefix
nltk.stem.lancaster.LancasterStemmer.html#__stripPrefix
ZopeInterfaceFunction
Method
PRIVATE
Remove prefix from a word.
-
nltk.stem.lancaster.LancasterStemmer.__repr__
nltk.stem.lancaster.LancasterStemmer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer
nltk.stem.isri.ISRIStemmer.html
ZopeInterfaceClass
Class
VISIBLE
ISRI Arabic stemmer based on algorithm: Arabic Stemming without a root dictionary. Information Science Research Institute. University of Nevada, Las Vegas, USA.
-
nltk.stem.isri.ISRIStemmer.__init__
nltk.stem.isri.ISRIStemmer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.p3
nltk.stem.isri.ISRIStemmer.html#p3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.p2
nltk.stem.isri.ISRIStemmer.html#p2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.p1
nltk.stem.isri.ISRIStemmer.html#p1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.s3
nltk.stem.isri.ISRIStemmer.html#s3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.s2
nltk.stem.isri.ISRIStemmer.html#s2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.s1
nltk.stem.isri.ISRIStemmer.html#s1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.pr4
nltk.stem.isri.ISRIStemmer.html#pr4
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.pr53
nltk.stem.isri.ISRIStemmer.html#pr53
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.re_short_vowels
nltk.stem.isri.ISRIStemmer.html#re_short_vowels
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.re_hamza
nltk.stem.isri.ISRIStemmer.html#re_hamza
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.re_initial_hamza
nltk.stem.isri.ISRIStemmer.html#re_initial_hamza
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.stop_words
nltk.stem.isri.ISRIStemmer.html#stop_words
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.isri.ISRIStemmer.stem
nltk.stem.isri.ISRIStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stemming a word token using the ISRI stemmer.
-
nltk.stem.isri.ISRIStemmer.norm
nltk.stem.isri.ISRIStemmer.html#norm
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.stem.isri.ISRIStemmer.pre32
nltk.stem.isri.ISRIStemmer.html#pre32
ZopeInterfaceFunction
Method
VISIBLE
remove length three and length two prefixes in this order
-
nltk.stem.isri.ISRIStemmer.suf32
nltk.stem.isri.ISRIStemmer.html#suf32
ZopeInterfaceFunction
Method
VISIBLE
remove length three and length two suffixes in this order
-
nltk.stem.isri.ISRIStemmer.waw
nltk.stem.isri.ISRIStemmer.html#waw
ZopeInterfaceFunction
Method
VISIBLE
remove connective ‘و’ if it precedes a word beginning with ‘و’
-
nltk.stem.isri.ISRIStemmer.pro_w4
nltk.stem.isri.ISRIStemmer.html#pro_w4
ZopeInterfaceFunction
Method
VISIBLE
process length four patterns and extract length three roots
-
nltk.stem.isri.ISRIStemmer.pro_w53
nltk.stem.isri.ISRIStemmer.html#pro_w53
ZopeInterfaceFunction
Method
VISIBLE
process length five patterns and extract length three roots
-
nltk.stem.isri.ISRIStemmer.pro_w54
nltk.stem.isri.ISRIStemmer.html#pro_w54
ZopeInterfaceFunction
Method
VISIBLE
process length five patterns and extract length four roots
-
nltk.stem.isri.ISRIStemmer.end_w5
nltk.stem.isri.ISRIStemmer.html#end_w5
ZopeInterfaceFunction
Method
VISIBLE
ending step (word of length five)
-
nltk.stem.isri.ISRIStemmer.pro_w6
nltk.stem.isri.ISRIStemmer.html#pro_w6
ZopeInterfaceFunction
Method
VISIBLE
process length six patterns and extract length three roots
-
nltk.stem.isri.ISRIStemmer.pro_w64
nltk.stem.isri.ISRIStemmer.html#pro_w64
ZopeInterfaceFunction
Method
VISIBLE
process length six patterns and extract length four roots
-
nltk.stem.isri.ISRIStemmer.end_w6
nltk.stem.isri.ISRIStemmer.html#end_w6
ZopeInterfaceFunction
Method
VISIBLE
ending step (word of length six)
-
nltk.stem.isri.ISRIStemmer.suf1
nltk.stem.isri.ISRIStemmer.html#suf1
ZopeInterfaceFunction
Method
VISIBLE
normalize short sufix
-
nltk.stem.isri.ISRIStemmer.pre1
nltk.stem.isri.ISRIStemmer.html#pre1
ZopeInterfaceFunction
Method
VISIBLE
normalize short prefix
-
nltk.stem.util.suffix_replace
nltk.stem.util.html#suffix_replace
ZopeInterfaceFunction
Function
VISIBLE
Replaces the old suffix of the original string by a new suffix
-
nltk.stem.util.prefix_replace
nltk.stem.util.html#prefix_replace
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.stem.snowball.SnowballStemmer
nltk.stem.snowball.SnowballStemmer.html
ZopeInterfaceClass
Class
VISIBLE
Snowball Stemmer
-
nltk.stem.snowball.SnowballStemmer.languages
nltk.stem.snowball.SnowballStemmer.html#languages
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.SnowballStemmer.__init__
nltk.stem.snowball.SnowballStemmer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.snowball.SnowballStemmer.stemmer
nltk.stem.snowball.SnowballStemmer.html#stemmer
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.SnowballStemmer.stopwords
nltk.stem.snowball.SnowballStemmer.html#stopwords
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.SnowballStemmer.stem
nltk.stem.snowball.SnowballStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Strip affixes from the token and return the stem.
-
nltk.stem.snowball._LanguageSpecificStemmer
nltk.stem.snowball._LanguageSpecificStemmer.html
ZopeInterfaceClass
Class
PRIVATE
This helper subclass offers the possibility to invoke a specific stemmer directly. This is useful if you already know the language to be stemmed at runtime.
-
nltk.stem.snowball._LanguageSpecificStemmer.__init__
nltk.stem.snowball._LanguageSpecificStemmer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.snowball._LanguageSpecificStemmer.stopwords
nltk.stem.snowball._LanguageSpecificStemmer.html#stopwords
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball._LanguageSpecificStemmer.__repr__
nltk.stem.snowball._LanguageSpecificStemmer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Print out the string representation of the respective class.
-
nltk.stem.snowball.PorterStemmer
nltk.stem.snowball.PorterStemmer.html
ZopeInterfaceClass
Class
VISIBLE
A word stemmer based on the original Porter stemming algorithm.
-
nltk.stem.snowball.PorterStemmer.__init__
nltk.stem.snowball.PorterStemmer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.snowball._ScandinavianStemmer
nltk.stem.snowball._ScandinavianStemmer.html
ZopeInterfaceClass
Class
PRIVATE
This subclass encapsulates a method for defining the string region R1. It is used by the Danish, Norwegian, and Swedish stemmer.
-
nltk.stem.snowball._ScandinavianStemmer._r1_scandinavian
nltk.stem.snowball._ScandinavianStemmer.html#_r1_scandinavian
ZopeInterfaceFunction
Method
PRIVATE
Return the region R1 that is used by the Scandinavian stemmers.
-
nltk.stem.snowball._StandardStemmer
nltk.stem.snowball._StandardStemmer.html
ZopeInterfaceClass
Class
PRIVATE
This subclass encapsulates two methods for defining the standard versions of the string regions R1, R2, and RV.
-
nltk.stem.snowball._StandardStemmer._r1r2_standard
nltk.stem.snowball._StandardStemmer.html#_r1r2_standard
ZopeInterfaceFunction
Method
PRIVATE
Return the standard interpretations of the string regions R1 and R2.
-
nltk.stem.snowball._StandardStemmer._rv_standard
nltk.stem.snowball._StandardStemmer.html#_rv_standard
ZopeInterfaceFunction
Method
PRIVATE
Return the standard interpretation of the string region RV.
-
nltk.stem.snowball.ArabicStemmer
nltk.stem.snowball.ArabicStemmer.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.stem.snowball.ArabicStemmer.__vocalization
nltk.stem.snowball.ArabicStemmer.html#__vocalization
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__kasheeda
nltk.stem.snowball.ArabicStemmer.html#__kasheeda
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__arabic_punctuation_marks
nltk.stem.snowball.ArabicStemmer.html#__arabic_punctuation_marks
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__last_hamzat
nltk.stem.snowball.ArabicStemmer.html#__last_hamzat
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__initial_hamzat
nltk.stem.snowball.ArabicStemmer.html#__initial_hamzat
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__waw_hamza
nltk.stem.snowball.ArabicStemmer.html#__waw_hamza
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__yeh_hamza
nltk.stem.snowball.ArabicStemmer.html#__yeh_hamza
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__alefat
nltk.stem.snowball.ArabicStemmer.html#__alefat
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__checks1
nltk.stem.snowball.ArabicStemmer.html#__checks1
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__checks2
nltk.stem.snowball.ArabicStemmer.html#__checks2
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_noun_step1a
nltk.stem.snowball.ArabicStemmer.html#__suffix_noun_step1a
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_noun_step1b
nltk.stem.snowball.ArabicStemmer.html#__suffix_noun_step1b
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_noun_step2a
nltk.stem.snowball.ArabicStemmer.html#__suffix_noun_step2a
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_noun_step2b
nltk.stem.snowball.ArabicStemmer.html#__suffix_noun_step2b
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_noun_step2c1
nltk.stem.snowball.ArabicStemmer.html#__suffix_noun_step2c1
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_noun_step2c2
nltk.stem.snowball.ArabicStemmer.html#__suffix_noun_step2c2
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_noun_step3
nltk.stem.snowball.ArabicStemmer.html#__suffix_noun_step3
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_verb_step1
nltk.stem.snowball.ArabicStemmer.html#__suffix_verb_step1
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_verb_step2a
nltk.stem.snowball.ArabicStemmer.html#__suffix_verb_step2a
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_verb_step2b
nltk.stem.snowball.ArabicStemmer.html#__suffix_verb_step2b
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_verb_step2c
nltk.stem.snowball.ArabicStemmer.html#__suffix_verb_step2c
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__suffix_all_alef_maqsura
nltk.stem.snowball.ArabicStemmer.html#__suffix_all_alef_maqsura
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prefix_step1
nltk.stem.snowball.ArabicStemmer.html#__prefix_step1
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prefix_step2a
nltk.stem.snowball.ArabicStemmer.html#__prefix_step2a
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prefix_step2b
nltk.stem.snowball.ArabicStemmer.html#__prefix_step2b
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prefix_step3a_noun
nltk.stem.snowball.ArabicStemmer.html#__prefix_step3a_noun
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prefix_step3b_noun
nltk.stem.snowball.ArabicStemmer.html#__prefix_step3b_noun
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prefix_step3_verb
nltk.stem.snowball.ArabicStemmer.html#__prefix_step3_verb
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prefix_step4_verb
nltk.stem.snowball.ArabicStemmer.html#__prefix_step4_verb
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_verb_1
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_verb_1
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_verb_2
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_verb_2
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_verb_3
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_verb_3
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_verb_4
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_verb_4
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_verb_past
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_verb_past
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_verb_present
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_verb_present
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_noun_1
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_noun_1
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_noun_2
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_noun_2
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__conjugation_suffix_noun_3
nltk.stem.snowball.ArabicStemmer.html#__conjugation_suffix_noun_3
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prefixes1
nltk.stem.snowball.ArabicStemmer.html#__prefixes1
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__articles_3len
nltk.stem.snowball.ArabicStemmer.html#__articles_3len
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__articles_2len
nltk.stem.snowball.ArabicStemmer.html#__articles_2len
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prepositions1
nltk.stem.snowball.ArabicStemmer.html#__prepositions1
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__prepositions2
nltk.stem.snowball.ArabicStemmer.html#__prepositions2
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.is_verb
nltk.stem.snowball.ArabicStemmer.html#is_verb
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.is_noun
nltk.stem.snowball.ArabicStemmer.html#is_noun
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.is_defined
nltk.stem.snowball.ArabicStemmer.html#is_defined
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.suffixes_verb_step1_success
nltk.stem.snowball.ArabicStemmer.html#suffixes_verb_step1_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.suffix_verb_step2a_success
nltk.stem.snowball.ArabicStemmer.html#suffix_verb_step2a_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.suffix_verb_step2b_success
nltk.stem.snowball.ArabicStemmer.html#suffix_verb_step2b_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.suffix_noun_step2c2_success
nltk.stem.snowball.ArabicStemmer.html#suffix_noun_step2c2_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.suffix_noun_step1a_success
nltk.stem.snowball.ArabicStemmer.html#suffix_noun_step1a_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.suffix_noun_step2a_success
nltk.stem.snowball.ArabicStemmer.html#suffix_noun_step2a_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.suffix_noun_step2b_success
nltk.stem.snowball.ArabicStemmer.html#suffix_noun_step2b_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.suffixe_noun_step1b_success
nltk.stem.snowball.ArabicStemmer.html#suffixe_noun_step1b_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.prefix_step2a_success
nltk.stem.snowball.ArabicStemmer.html#prefix_step2a_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.prefix_step3a_noun_success
nltk.stem.snowball.ArabicStemmer.html#prefix_step3a_noun_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.prefix_step3b_noun_success
nltk.stem.snowball.ArabicStemmer.html#prefix_step3b_noun_success
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__normalize_pre
nltk.stem.snowball.ArabicStemmer.html#__normalize_pre
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.stem.snowball.ArabicStemmer.__normalize_post
nltk.stem.snowball.ArabicStemmer.html#__normalize_post
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__checks_1
nltk.stem.snowball.ArabicStemmer.html#__checks_1
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__checks_2
nltk.stem.snowball.ArabicStemmer.html#__checks_2
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Verb_Step1
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Verb_Step1
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Verb_Step2a
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Verb_Step2a
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Verb_Step2c
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Verb_Step2c
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Verb_Step2b
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Verb_Step2b
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Noun_Step2c2
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Noun_Step2c2
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Noun_Step1a
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Noun_Step1a
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Noun_Step2a
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Noun_Step2a
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Noun_Step2b
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Noun_Step2b
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Noun_Step2c1
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Noun_Step2c1
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Noun_Step1b
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Noun_Step1b
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_Noun_Step3
nltk.stem.snowball.ArabicStemmer.html#__Suffix_Noun_Step3
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Suffix_All_alef_maqsura
nltk.stem.snowball.ArabicStemmer.html#__Suffix_All_alef_maqsura
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Prefix_Step1
nltk.stem.snowball.ArabicStemmer.html#__Prefix_Step1
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Prefix_Step2a
nltk.stem.snowball.ArabicStemmer.html#__Prefix_Step2a
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Prefix_Step2b
nltk.stem.snowball.ArabicStemmer.html#__Prefix_Step2b
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Prefix_Step3a_Noun
nltk.stem.snowball.ArabicStemmer.html#__Prefix_Step3a_Noun
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Prefix_Step3b_Noun
nltk.stem.snowball.ArabicStemmer.html#__Prefix_Step3b_Noun
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Prefix_Step3_Verb
nltk.stem.snowball.ArabicStemmer.html#__Prefix_Step3_Verb
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.__Prefix_Step4_Verb
nltk.stem.snowball.ArabicStemmer.html#__Prefix_Step4_Verb
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.stem.snowball.ArabicStemmer.stem
nltk.stem.snowball.ArabicStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem an Arabic word and return the stemmed form. :param word: string :return: string
-
nltk.stem.snowball.DanishStemmer
nltk.stem.snowball.DanishStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Danish Snowball stemmer.
-
nltk.stem.snowball.DanishStemmer.__vowels
nltk.stem.snowball.DanishStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Danish vowels.
-
nltk.stem.snowball.DanishStemmer.__consonants
nltk.stem.snowball.DanishStemmer.html#__consonants
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Danish consonants.
-
nltk.stem.snowball.DanishStemmer.__double_consonants
nltk.stem.snowball.DanishStemmer.html#__double_consonants
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Danish double consonants.
-
nltk.stem.snowball.DanishStemmer.__s_ending
nltk.stem.snowball.DanishStemmer.html#__s_ending
ZopeInterfaceAttribute
Class Variable
PRIVATE
Letters that may directly appear before a word final 's'.
-
nltk.stem.snowball.DanishStemmer.__step1_suffixes
nltk.stem.snowball.DanishStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.DanishStemmer.__step2_suffixes
nltk.stem.snowball.DanishStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.DanishStemmer.__step3_suffixes
nltk.stem.snowball.DanishStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.DanishStemmer.stem
nltk.stem.snowball.DanishStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Danish word and return the stemmed form.
-
nltk.stem.snowball.DutchStemmer
nltk.stem.snowball.DutchStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Dutch Snowball stemmer.
-
nltk.stem.snowball.DutchStemmer.__vowels
nltk.stem.snowball.DutchStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Dutch vowels.
-
nltk.stem.snowball.DutchStemmer.__step1_suffixes
nltk.stem.snowball.DutchStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.DutchStemmer.__step3b_suffixes
nltk.stem.snowball.DutchStemmer.html#__step3b_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3b of the algorithm.
-
nltk.stem.snowball.DutchStemmer.stem
nltk.stem.snowball.DutchStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Dutch word and return the stemmed form.
-
nltk.stem.snowball.EnglishStemmer
nltk.stem.snowball.EnglishStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The English Snowball stemmer.
-
nltk.stem.snowball.EnglishStemmer.__vowels
nltk.stem.snowball.EnglishStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The English vowels.
-
nltk.stem.snowball.EnglishStemmer.__double_consonants
nltk.stem.snowball.EnglishStemmer.html#__double_consonants
ZopeInterfaceAttribute
Class Variable
PRIVATE
The English double consonants.
-
nltk.stem.snowball.EnglishStemmer.__li_ending
nltk.stem.snowball.EnglishStemmer.html#__li_ending
ZopeInterfaceAttribute
Class Variable
PRIVATE
Letters that may directly appear before a word final 'li'.
-
nltk.stem.snowball.EnglishStemmer.__step0_suffixes
nltk.stem.snowball.EnglishStemmer.html#__step0_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 0 of the algorithm.
-
nltk.stem.snowball.EnglishStemmer.__step1a_suffixes
nltk.stem.snowball.EnglishStemmer.html#__step1a_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1a of the algorithm.
-
nltk.stem.snowball.EnglishStemmer.__step1b_suffixes
nltk.stem.snowball.EnglishStemmer.html#__step1b_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1b of the algorithm.
-
nltk.stem.snowball.EnglishStemmer.__step2_suffixes
nltk.stem.snowball.EnglishStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.EnglishStemmer.__step3_suffixes
nltk.stem.snowball.EnglishStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.EnglishStemmer.__step4_suffixes
nltk.stem.snowball.EnglishStemmer.html#__step4_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 4 of the algorithm.
-
nltk.stem.snowball.EnglishStemmer.__step5_suffixes
nltk.stem.snowball.EnglishStemmer.html#__step5_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 5 of the algorithm.
-
nltk.stem.snowball.EnglishStemmer.__special_words
nltk.stem.snowball.EnglishStemmer.html#__special_words
ZopeInterfaceAttribute
Class Variable
PRIVATE
A dictionary containing words
which have to be stemmed specially.
-
nltk.stem.snowball.EnglishStemmer.stem
nltk.stem.snowball.EnglishStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem an English word and return the stemmed form.
-
nltk.stem.snowball.FinnishStemmer
nltk.stem.snowball.FinnishStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Finnish Snowball stemmer.
-
nltk.stem.snowball.FinnishStemmer.__vowels
nltk.stem.snowball.FinnishStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Finnish vowels.
-
nltk.stem.snowball.FinnishStemmer.__restricted_vowels
nltk.stem.snowball.FinnishStemmer.html#__restricted_vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
A subset of the Finnish vowels.
-
nltk.stem.snowball.FinnishStemmer.__long_vowels
nltk.stem.snowball.FinnishStemmer.html#__long_vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Finnish vowels in their long forms.
-
nltk.stem.snowball.FinnishStemmer.__consonants
nltk.stem.snowball.FinnishStemmer.html#__consonants
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Finnish consonants.
-
nltk.stem.snowball.FinnishStemmer.__double_consonants
nltk.stem.snowball.FinnishStemmer.html#__double_consonants
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Finnish double consonants.
-
nltk.stem.snowball.FinnishStemmer.__step1_suffixes
nltk.stem.snowball.FinnishStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.FinnishStemmer.__step2_suffixes
nltk.stem.snowball.FinnishStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.FinnishStemmer.__step3_suffixes
nltk.stem.snowball.FinnishStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.FinnishStemmer.__step4_suffixes
nltk.stem.snowball.FinnishStemmer.html#__step4_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 4 of the algorithm.
-
nltk.stem.snowball.FinnishStemmer.stem
nltk.stem.snowball.FinnishStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Finnish word and return the stemmed form.
-
nltk.stem.snowball.FrenchStemmer
nltk.stem.snowball.FrenchStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The French Snowball stemmer.
-
nltk.stem.snowball.FrenchStemmer.__vowels
nltk.stem.snowball.FrenchStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The French vowels.
-
nltk.stem.snowball.FrenchStemmer.__step1_suffixes
nltk.stem.snowball.FrenchStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.FrenchStemmer.__step2a_suffixes
nltk.stem.snowball.FrenchStemmer.html#__step2a_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2a of the algorithm.
-
nltk.stem.snowball.FrenchStemmer.__step2b_suffixes
nltk.stem.snowball.FrenchStemmer.html#__step2b_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2b of the algorithm.
-
nltk.stem.snowball.FrenchStemmer.__step4_suffixes
nltk.stem.snowball.FrenchStemmer.html#__step4_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 4 of the algorithm.
-
nltk.stem.snowball.FrenchStemmer.stem
nltk.stem.snowball.FrenchStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a French word and return the stemmed form.
-
nltk.stem.snowball.FrenchStemmer.__rv_french
nltk.stem.snowball.FrenchStemmer.html#__rv_french
ZopeInterfaceFunction
Method
PRIVATE
Return the region RV that is used by the French stemmer.
-
nltk.stem.snowball.GermanStemmer
nltk.stem.snowball.GermanStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The German Snowball stemmer.
-
nltk.stem.snowball.GermanStemmer.__vowels
nltk.stem.snowball.GermanStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The German vowels.
-
nltk.stem.snowball.GermanStemmer.__s_ending
nltk.stem.snowball.GermanStemmer.html#__s_ending
ZopeInterfaceAttribute
Class Variable
PRIVATE
Letters that may directly appear before a word final 's'.
-
nltk.stem.snowball.GermanStemmer.__st_ending
nltk.stem.snowball.GermanStemmer.html#__st_ending
ZopeInterfaceAttribute
Class Variable
PRIVATE
Letter that may directly appear before a word final 'st'.
-
nltk.stem.snowball.GermanStemmer.__step1_suffixes
nltk.stem.snowball.GermanStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.GermanStemmer.__step2_suffixes
nltk.stem.snowball.GermanStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.GermanStemmer.__step3_suffixes
nltk.stem.snowball.GermanStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.GermanStemmer.stem
nltk.stem.snowball.GermanStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a German word and return the stemmed form.
-
nltk.stem.snowball.HungarianStemmer
nltk.stem.snowball.HungarianStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Hungarian Snowball stemmer.
-
nltk.stem.snowball.HungarianStemmer.__vowels
nltk.stem.snowball.HungarianStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Hungarian vowels.
-
nltk.stem.snowball.HungarianStemmer.__digraphs
nltk.stem.snowball.HungarianStemmer.html#__digraphs
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Hungarian digraphs.
-
nltk.stem.snowball.HungarianStemmer.__double_consonants
nltk.stem.snowball.HungarianStemmer.html#__double_consonants
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Hungarian double consonants.
-
nltk.stem.snowball.HungarianStemmer.__step1_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.__step2_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.__step3_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.__step4_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step4_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 4 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.__step5_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step5_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 5 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.__step6_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step6_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 6 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.__step7_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step7_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 7 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.__step8_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step8_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 8 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.__step9_suffixes
nltk.stem.snowball.HungarianStemmer.html#__step9_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 9 of the algorithm.
-
nltk.stem.snowball.HungarianStemmer.stem
nltk.stem.snowball.HungarianStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem an Hungarian word and return the stemmed form.
-
nltk.stem.snowball.HungarianStemmer.__r1_hungarian
nltk.stem.snowball.HungarianStemmer.html#__r1_hungarian
ZopeInterfaceFunction
Method
PRIVATE
Return the region R1 that is used by the Hungarian stemmer.
-
nltk.stem.snowball.ItalianStemmer
nltk.stem.snowball.ItalianStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Italian Snowball stemmer.
-
nltk.stem.snowball.ItalianStemmer.__vowels
nltk.stem.snowball.ItalianStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Italian vowels.
-
nltk.stem.snowball.ItalianStemmer.__step0_suffixes
nltk.stem.snowball.ItalianStemmer.html#__step0_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 0 of the algorithm.
-
nltk.stem.snowball.ItalianStemmer.__step1_suffixes
nltk.stem.snowball.ItalianStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.ItalianStemmer.__step2_suffixes
nltk.stem.snowball.ItalianStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.ItalianStemmer.stem
nltk.stem.snowball.ItalianStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem an Italian word and return the stemmed form.
-
nltk.stem.snowball.NorwegianStemmer
nltk.stem.snowball.NorwegianStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Norwegian Snowball stemmer.
-
nltk.stem.snowball.NorwegianStemmer.__vowels
nltk.stem.snowball.NorwegianStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Norwegian vowels.
-
nltk.stem.snowball.NorwegianStemmer.__s_ending
nltk.stem.snowball.NorwegianStemmer.html#__s_ending
ZopeInterfaceAttribute
Class Variable
PRIVATE
Letters that may directly appear before a word final 's'.
-
nltk.stem.snowball.NorwegianStemmer.__step1_suffixes
nltk.stem.snowball.NorwegianStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.NorwegianStemmer.__step2_suffixes
nltk.stem.snowball.NorwegianStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.NorwegianStemmer.__step3_suffixes
nltk.stem.snowball.NorwegianStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.NorwegianStemmer.stem
nltk.stem.snowball.NorwegianStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Norwegian word and return the stemmed form.
-
nltk.stem.snowball.PortugueseStemmer
nltk.stem.snowball.PortugueseStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Portuguese Snowball stemmer.
-
nltk.stem.snowball.PortugueseStemmer.__vowels
nltk.stem.snowball.PortugueseStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Portuguese vowels.
-
nltk.stem.snowball.PortugueseStemmer.__step1_suffixes
nltk.stem.snowball.PortugueseStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.PortugueseStemmer.__step2_suffixes
nltk.stem.snowball.PortugueseStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.PortugueseStemmer.__step4_suffixes
nltk.stem.snowball.PortugueseStemmer.html#__step4_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 4 of the algorithm.
-
nltk.stem.snowball.PortugueseStemmer.stem
nltk.stem.snowball.PortugueseStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Portuguese word and return the stemmed form.
-
nltk.stem.snowball.RomanianStemmer
nltk.stem.snowball.RomanianStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Romanian Snowball stemmer.
-
nltk.stem.snowball.RomanianStemmer.__vowels
nltk.stem.snowball.RomanianStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Romanian vowels.
-
nltk.stem.snowball.RomanianStemmer.__step0_suffixes
nltk.stem.snowball.RomanianStemmer.html#__step0_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 0 of the algorithm.
-
nltk.stem.snowball.RomanianStemmer.__step1_suffixes
nltk.stem.snowball.RomanianStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.RomanianStemmer.__step2_suffixes
nltk.stem.snowball.RomanianStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.RomanianStemmer.__step3_suffixes
nltk.stem.snowball.RomanianStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.RomanianStemmer.stem
nltk.stem.snowball.RomanianStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Romanian word and return the stemmed form.
-
nltk.stem.snowball.RussianStemmer
nltk.stem.snowball.RussianStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Russian Snowball stemmer.
-
nltk.stem.snowball.RussianStemmer.__perfective_gerund_suffixes
nltk.stem.snowball.RussianStemmer.html#__perfective_gerund_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted.
-
nltk.stem.snowball.RussianStemmer.__adjectival_suffixes
nltk.stem.snowball.RussianStemmer.html#__adjectival_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted.
-
nltk.stem.snowball.RussianStemmer.__reflexive_suffixes
nltk.stem.snowball.RussianStemmer.html#__reflexive_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted.
-
nltk.stem.snowball.RussianStemmer.__verb_suffixes
nltk.stem.snowball.RussianStemmer.html#__verb_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted.
-
nltk.stem.snowball.RussianStemmer.__noun_suffixes
nltk.stem.snowball.RussianStemmer.html#__noun_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted.
-
nltk.stem.snowball.RussianStemmer.__superlative_suffixes
nltk.stem.snowball.RussianStemmer.html#__superlative_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted.
-
nltk.stem.snowball.RussianStemmer.__derivational_suffixes
nltk.stem.snowball.RussianStemmer.html#__derivational_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted.
-
nltk.stem.snowball.RussianStemmer.stem
nltk.stem.snowball.RussianStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Russian word and return the stemmed form.
-
nltk.stem.snowball.RussianStemmer.__regions_russian
nltk.stem.snowball.RussianStemmer.html#__regions_russian
ZopeInterfaceFunction
Method
PRIVATE
Return the regions RV and R2 which are used by the Russian stemmer.
-
nltk.stem.snowball.RussianStemmer.__cyrillic_to_roman
nltk.stem.snowball.RussianStemmer.html#__cyrillic_to_roman
ZopeInterfaceFunction
Method
PRIVATE
Transliterate a Russian word into the Roman alphabet.
-
nltk.stem.snowball.RussianStemmer.__roman_to_cyrillic
nltk.stem.snowball.RussianStemmer.html#__roman_to_cyrillic
ZopeInterfaceFunction
Method
PRIVATE
Transliterate a Russian word back into the Cyrillic alphabet.
-
nltk.stem.snowball.SpanishStemmer
nltk.stem.snowball.SpanishStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Spanish Snowball stemmer.
-
nltk.stem.snowball.SpanishStemmer.__vowels
nltk.stem.snowball.SpanishStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Spanish vowels.
-
nltk.stem.snowball.SpanishStemmer.__step0_suffixes
nltk.stem.snowball.SpanishStemmer.html#__step0_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 0 of the algorithm.
-
nltk.stem.snowball.SpanishStemmer.__step1_suffixes
nltk.stem.snowball.SpanishStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.SpanishStemmer.__step2a_suffixes
nltk.stem.snowball.SpanishStemmer.html#__step2a_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2a of the algorithm.
-
nltk.stem.snowball.SpanishStemmer.__step2b_suffixes
nltk.stem.snowball.SpanishStemmer.html#__step2b_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2b of the algorithm.
-
nltk.stem.snowball.SpanishStemmer.__step3_suffixes
nltk.stem.snowball.SpanishStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.SpanishStemmer.stem
nltk.stem.snowball.SpanishStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Spanish word and return the stemmed form.
-
nltk.stem.snowball.SpanishStemmer.__replace_accented
nltk.stem.snowball.SpanishStemmer.html#__replace_accented
ZopeInterfaceFunction
Method
PRIVATE
Replaces all accented letters on a word with their non-accented counterparts.
-
nltk.stem.snowball.SwedishStemmer
nltk.stem.snowball.SwedishStemmer.html
ZopeInterfaceClass
Class
VISIBLE
The Swedish Snowball stemmer.
-
nltk.stem.snowball.SwedishStemmer.__vowels
nltk.stem.snowball.SwedishStemmer.html#__vowels
ZopeInterfaceAttribute
Class Variable
PRIVATE
The Swedish vowels.
-
nltk.stem.snowball.SwedishStemmer.__s_ending
nltk.stem.snowball.SwedishStemmer.html#__s_ending
ZopeInterfaceAttribute
Class Variable
PRIVATE
Letters that may directly appear before a word final 's'.
-
nltk.stem.snowball.SwedishStemmer.__step1_suffixes
nltk.stem.snowball.SwedishStemmer.html#__step1_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 1 of the algorithm.
-
nltk.stem.snowball.SwedishStemmer.__step2_suffixes
nltk.stem.snowball.SwedishStemmer.html#__step2_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 2 of the algorithm.
-
nltk.stem.snowball.SwedishStemmer.__step3_suffixes
nltk.stem.snowball.SwedishStemmer.html#__step3_suffixes
ZopeInterfaceAttribute
Class Variable
PRIVATE
Suffixes to be deleted in step 3 of the algorithm.
-
nltk.stem.snowball.SwedishStemmer.stem
nltk.stem.snowball.SwedishStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Stem a Swedish word and return the stemmed form.
-
nltk.stem.snowball.demo
nltk.stem.snowball.html#demo
ZopeInterfaceFunction
Function
VISIBLE
This function provides a demonstration of the Snowball stemmers.
-
nltk.corpus.reader.util.StreamBackedCorpusView
nltk.corpus.reader.util.StreamBackedCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.util.StreamBackedCorpusView._block_reader
nltk.corpus.reader.util.StreamBackedCorpusView.html#_block_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The function used to read
a single block from the underlying file stream.
-
nltk.corpus.reader.util.StreamBackedCorpusView._toknum
nltk.corpus.reader.util.StreamBackedCorpusView.html#_toknum
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list containing the token index of each block
that has been processed. In particular, _toknum[i] is the
token index of the first token in block i. Together
with _filepos, this forms a partial mapping between token
indices and file positions.
-
nltk.corpus.reader.util.StreamBackedCorpusView._filepos
nltk.corpus.reader.util.StreamBackedCorpusView.html#_filepos
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list containing the file position of each block
that has been processed. In particular, _toknum[i] is the
file position of the first character in block i. Together
with _toknum, this forms a partial mapping between token
indices and file positions.
-
nltk.corpus.reader.util.StreamBackedCorpusView._stream
nltk.corpus.reader.util.StreamBackedCorpusView.html#_stream
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The stream used to access the underlying corpus file.
-
nltk.corpus.reader.util.StreamBackedCorpusView._len
nltk.corpus.reader.util.StreamBackedCorpusView.html#_len
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The total number of tokens in the corpus, if known;
or None, if the number of tokens is not yet known.
-
nltk.corpus.reader.util.StreamBackedCorpusView._eofpos
nltk.corpus.reader.util.StreamBackedCorpusView.html#_eofpos
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The character position of the last character in the
file. This is calculated when the corpus view is initialized,
and is used to decide when the end of file has been reached.
-
nltk.corpus.reader.util.StreamBackedCorpusView._cache
nltk.corpus.reader.util.StreamBackedCorpusView.html#_cache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A cache of the most recently read block. It
is encoded as a tuple (start_toknum, end_toknum, tokens), where
start_toknum is the token index of the first token in the block;
end_toknum is the token index of the first token not in the
block; and tokens is a list of the tokens in the block.
-
nltk.corpus.reader.util.StreamBackedCorpusView.__init__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.util.StreamBackedCorpusView._encoding
nltk.corpus.reader.util.StreamBackedCorpusView.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView._fileid
nltk.corpus.reader.util.StreamBackedCorpusView.html#_fileid
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView._current_toknum
nltk.corpus.reader.util.StreamBackedCorpusView.html#_current_toknum
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.corpus.reader.util.StreamBackedCorpusView._current_blocknum
nltk.corpus.reader.util.StreamBackedCorpusView.html#_current_blocknum
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.corpus.reader.util.StreamBackedCorpusView.fileid
nltk.corpus.reader.util.StreamBackedCorpusView.html#fileid
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.read_block 0
nltk.corpus.reader.util.StreamBackedCorpusView.html#read_block%200
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.read_block
nltk.corpus.reader.util.StreamBackedCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.corpus.reader.util.StreamBackedCorpusView._open
nltk.corpus.reader.util.StreamBackedCorpusView.html#_open
ZopeInterfaceFunction
Method
PRIVATE
Open the file stream associated with this corpus view. This will be called performed if any value is read from the view while its file stream is closed.
-
nltk.corpus.reader.util.StreamBackedCorpusView.close
nltk.corpus.reader.util.StreamBackedCorpusView.html#close
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.util.StreamBackedCorpusView.__enter__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__enter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.__exit__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__exit__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.__len__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.__getitem__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.iterate_from
nltk.corpus.reader.util.StreamBackedCorpusView.html#iterate_from
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.__add__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.__radd__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__radd__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.__mul__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__mul__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.StreamBackedCorpusView.__rmul__
nltk.corpus.reader.util.StreamBackedCorpusView.html#__rmul__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.ConcatenatedCorpusView
nltk.corpus.reader.util.ConcatenatedCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
A 'view' of a corpus file that joins together one or more StreamBackedCorpusViews<StreamBackedCorpusView>. At most one file handle is left open at any time.
-
nltk.corpus.reader.util.ConcatenatedCorpusView.__init__
nltk.corpus.reader.util.ConcatenatedCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.ConcatenatedCorpusView._pieces
nltk.corpus.reader.util.ConcatenatedCorpusView.html#_pieces
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of the corpus subviews that make up this concatenation.
-
nltk.corpus.reader.util.ConcatenatedCorpusView._offsets
nltk.corpus.reader.util.ConcatenatedCorpusView.html#_offsets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of offsets, indicating the index at which each subview begins. In particular:: offsets[i] = sum([len(p) for p in pieces[:i]])
-
nltk.corpus.reader.util.ConcatenatedCorpusView._open_piece
nltk.corpus.reader.util.ConcatenatedCorpusView.html#_open_piece
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The most recently accessed corpus subview (or None). Before a new subview is accessed, this subview will be closed.
-
nltk.corpus.reader.util.ConcatenatedCorpusView.__len__
nltk.corpus.reader.util.ConcatenatedCorpusView.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.ConcatenatedCorpusView.close
nltk.corpus.reader.util.ConcatenatedCorpusView.html#close
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.ConcatenatedCorpusView.iterate_from
nltk.corpus.reader.util.ConcatenatedCorpusView.html#iterate_from
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.concat
nltk.corpus.reader.util.html#concat
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.corpus.reader.util.PickleCorpusView
nltk.corpus.reader.util.PickleCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.util.PickleCorpusView.BLOCK_SIZE
nltk.corpus.reader.util.PickleCorpusView.html#BLOCK_SIZE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.util.PickleCorpusView.PROTOCOL
nltk.corpus.reader.util.PickleCorpusView.html#PROTOCOL
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.util.PickleCorpusView.__init__
nltk.corpus.reader.util.PickleCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view that reads the pickle corpus fileid.
-
nltk.corpus.reader.util.PickleCorpusView._delete_on_gc
nltk.corpus.reader.util.PickleCorpusView.html#_delete_on_gc
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.util.PickleCorpusView.read_block
nltk.corpus.reader.util.PickleCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.corpus.reader.util.PickleCorpusView.__del__
nltk.corpus.reader.util.PickleCorpusView.html#__del__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.util.PickleCorpusView.write
nltk.corpus.reader.util.PickleCorpusView.html#write
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.corpus.reader.util.PickleCorpusView.cache_to_tempfile
nltk.corpus.reader.util.PickleCorpusView.html#cache_to_tempfile
ZopeInterfaceFunction
Class Method
VISIBLE
Write the given sequence to a temporary file as a pickle corpus; and then return a PickleCorpusView view for that temporary corpus file.
-
nltk.corpus.reader.util.read_whitespace_block
nltk.corpus.reader.util.html#read_whitespace_block
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.util.read_wordpunct_block
nltk.corpus.reader.util.html#read_wordpunct_block
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.util.read_line_block
nltk.corpus.reader.util.html#read_line_block
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.util.read_blankline_block
nltk.corpus.reader.util.html#read_blankline_block
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.util.read_alignedsent_block
nltk.corpus.reader.util.html#read_alignedsent_block
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.util.read_regexp_block
nltk.corpus.reader.util.html#read_regexp_block
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.corpus.reader.util.read_sexpr_block
nltk.corpus.reader.util.html#read_sexpr_block
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.corpus.reader.util._sub_space
nltk.corpus.reader.util.html#_sub_space
ZopeInterfaceFunction
Function
PRIVATE
Helper function: given a regexp match, return a string of spaces that's the same length as the matched string.
-
nltk.corpus.reader.util._parse_sexpr_block
nltk.corpus.reader.util.html#_parse_sexpr_block
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.corpus.reader.util.find_corpus_fileids
nltk.corpus.reader.util.html#find_corpus_fileids
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.util._path_from
nltk.corpus.reader.util.html#_path_from
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.corpus.reader.util.tagged_treebank_para_block_reader
nltk.corpus.reader.util.html#tagged_treebank_para_block_reader
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.api.CorpusReader
nltk.corpus.reader.api.CorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.api.CorpusReader.__init__
nltk.corpus.reader.api.CorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.api.CorpusReader._fileids
nltk.corpus.reader.api.CorpusReader.html#_fileids
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of the relative paths for the fileids that make up this corpus.
-
nltk.corpus.reader.api.CorpusReader._root
nltk.corpus.reader.api.CorpusReader.html#_root
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The root directory for this corpus.
-
nltk.corpus.reader.api.CorpusReader._encoding
nltk.corpus.reader.api.CorpusReader.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The default unicode encoding for the fileids that make up this corpus. If encoding is None, then the file contents are processed using byte strings.
-
nltk.corpus.reader.api.CorpusReader._tagset
nltk.corpus.reader.api.CorpusReader.html#_tagset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CorpusReader.__repr__
nltk.corpus.reader.api.CorpusReader.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.api.CorpusReader.ensure_loaded
nltk.corpus.reader.api.CorpusReader.html#ensure_loaded
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.api.CorpusReader.readme
nltk.corpus.reader.api.CorpusReader.html#readme
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus README file, if it exists.
-
nltk.corpus.reader.api.CorpusReader.license
nltk.corpus.reader.api.CorpusReader.html#license
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus LICENSE file, if it exists.
-
nltk.corpus.reader.api.CorpusReader.citation
nltk.corpus.reader.api.CorpusReader.html#citation
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus citation.bib file, if it exists.
-
nltk.corpus.reader.api.CorpusReader.fileids
nltk.corpus.reader.api.CorpusReader.html#fileids
ZopeInterfaceFunction
Method
VISIBLE
Return a list of file identifiers for the fileids that make up this corpus.
-
nltk.corpus.reader.api.CorpusReader.abspath
nltk.corpus.reader.api.CorpusReader.html#abspath
ZopeInterfaceFunction
Method
VISIBLE
Return the absolute path for the given file.
-
nltk.corpus.reader.api.CorpusReader.abspaths
nltk.corpus.reader.api.CorpusReader.html#abspaths
ZopeInterfaceFunction
Method
VISIBLE
Return a list of the absolute paths for all fileids in this corpus; or for the given list of fileids, if specified.
-
nltk.corpus.reader.api.CorpusReader.open
nltk.corpus.reader.api.CorpusReader.html#open
ZopeInterfaceFunction
Method
VISIBLE
Return an open stream that can be used to read the given file. If the file's encoding is not None, then the stream will automatically decode the file's contents into unicode.
-
nltk.corpus.reader.api.CorpusReader.encoding
nltk.corpus.reader.api.CorpusReader.html#encoding
ZopeInterfaceFunction
Method
VISIBLE
Return the unicode encoding for the given corpus file, if known. If the encoding is unknown, or if the given file should be processed using byte strings (str), then return None.
-
nltk.corpus.reader.api.CorpusReader._get_root
nltk.corpus.reader.api.CorpusReader.html#_get_root
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CorpusReader.root
nltk.corpus.reader.api.CorpusReader.html#root
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader
nltk.corpus.reader.api.CategorizedCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.api.CategorizedCorpusReader.__init__
nltk.corpus.reader.api.CategorizedCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize this mapping based on keyword arguments, as follows:
-
nltk.corpus.reader.api.CategorizedCorpusReader._f2c
nltk.corpus.reader.api.CategorizedCorpusReader.html#_f2c
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader._c2f
nltk.corpus.reader.api.CategorizedCorpusReader.html#_c2f
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader._pattern
nltk.corpus.reader.api.CategorizedCorpusReader.html#_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader._map
nltk.corpus.reader.api.CategorizedCorpusReader.html#_map
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader._file
nltk.corpus.reader.api.CategorizedCorpusReader.html#_file
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader._delimiter
nltk.corpus.reader.api.CategorizedCorpusReader.html#_delimiter
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader._init
nltk.corpus.reader.api.CategorizedCorpusReader.html#_init
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader._add
nltk.corpus.reader.api.CategorizedCorpusReader.html#_add
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.CategorizedCorpusReader.categories
nltk.corpus.reader.api.CategorizedCorpusReader.html#categories
ZopeInterfaceFunction
Method
VISIBLE
Return a list of the categories that are defined for this corpus, or for the file(s) if it is given.
-
nltk.corpus.reader.api.CategorizedCorpusReader.fileids
nltk.corpus.reader.api.CategorizedCorpusReader.html#fileids
ZopeInterfaceFunction
Method
VISIBLE
Return a list of file identifiers for the files that make up this corpus, or that make up the given category(s) if specified.
-
nltk.corpus.reader.api.SyntaxCorpusReader
nltk.corpus.reader.api.SyntaxCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
An abstract base class for reading corpora consisting of syntactically parsed text. Subclasses should define:
-
nltk.corpus.reader.api.SyntaxCorpusReader._parse
nltk.corpus.reader.api.SyntaxCorpusReader.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader._word
nltk.corpus.reader.api.SyntaxCorpusReader.html#_word
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader._tag
nltk.corpus.reader.api.SyntaxCorpusReader.html#_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader._read_block
nltk.corpus.reader.api.SyntaxCorpusReader.html#_read_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader.raw
nltk.corpus.reader.api.SyntaxCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader.parsed_sents
nltk.corpus.reader.api.SyntaxCorpusReader.html#parsed_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader.tagged_sents
nltk.corpus.reader.api.SyntaxCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader.sents
nltk.corpus.reader.api.SyntaxCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader.tagged_words
nltk.corpus.reader.api.SyntaxCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader.words
nltk.corpus.reader.api.SyntaxCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader._read_word_block
nltk.corpus.reader.api.SyntaxCorpusReader.html#_read_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader._read_tagged_word_block
nltk.corpus.reader.api.SyntaxCorpusReader.html#_read_tagged_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader._read_sent_block
nltk.corpus.reader.api.SyntaxCorpusReader.html#_read_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader._read_tagged_sent_block
nltk.corpus.reader.api.SyntaxCorpusReader.html#_read_tagged_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.api.SyntaxCorpusReader._read_parsed_sent_block
nltk.corpus.reader.api.SyntaxCorpusReader.html#_read_parsed_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader.__init__
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new plaintext corpus reader for a set of documents located at the given root directory. Example usage:
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader._word_tokenizer
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader._sent_tokenizer
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#_sent_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader._para_block_reader
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#_para_block_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader.raw
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader.words
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader.sents
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader.paras
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader._read_word_block
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#_read_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader._read_sent_block
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#_read_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.PlaintextCorpusReader._read_para_block
nltk.corpus.reader.plaintext.PlaintextCorpusReader.html#_read_para_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A reader for plaintext corpora whose documents are divided into categories based on their file identifiers.
-
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.__init__
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader._resolve
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.html#_resolve
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.raw
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.words
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.sents
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.paras
nltk.corpus.reader.plaintext.CategorizedPlaintextCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.PortugueseCategorizedPlaintextCorpusReader
nltk.corpus.reader.plaintext.PortugueseCategorizedPlaintextCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.plaintext.PortugueseCategorizedPlaintextCorpusReader.__init__
nltk.corpus.reader.plaintext.PortugueseCategorizedPlaintextCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.EuroparlCorpusReader
nltk.corpus.reader.plaintext.EuroparlCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.EuroparlCorpusReader._read_word_block
nltk.corpus.reader.plaintext.EuroparlCorpusReader.html#_read_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.EuroparlCorpusReader._read_sent_block
nltk.corpus.reader.plaintext.EuroparlCorpusReader.html#_read_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.EuroparlCorpusReader._read_para_block
nltk.corpus.reader.plaintext.EuroparlCorpusReader.html#_read_para_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.plaintext.EuroparlCorpusReader.chapters
nltk.corpus.reader.plaintext.EuroparlCorpusReader.html#chapters
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.plaintext.EuroparlCorpusReader.paras
nltk.corpus.reader.plaintext.EuroparlCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.timit.TimitCorpusReader
nltk.corpus.reader.timit.TimitCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for the TIMIT corpus (or any other corpus with the same file layout and use of file formats). The corpus root directory should contain the following files:
-
nltk.corpus.reader.timit.TimitCorpusReader._FILE_RE
nltk.corpus.reader.timit.TimitCorpusReader.html#_FILE_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
A regexp matching fileids that are used by this corpus reader.
-
nltk.corpus.reader.timit.TimitCorpusReader._UTTERANCE_RE
nltk.corpus.reader.timit.TimitCorpusReader.html#_UTTERANCE_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.__init__
nltk.corpus.reader.timit.TimitCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new TIMIT corpus reader in the given directory. :param root: The root directory for this corpus.
-
nltk.corpus.reader.timit.TimitCorpusReader._utterances
nltk.corpus.reader.timit.TimitCorpusReader.html#_utterances
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of the utterance identifiers for all utterances in this corpus.
-
nltk.corpus.reader.timit.TimitCorpusReader._speakerinfo
nltk.corpus.reader.timit.TimitCorpusReader.html#_speakerinfo
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader._root
nltk.corpus.reader.timit.TimitCorpusReader.html#_root
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The root directory for this corpus.
-
nltk.corpus.reader.timit.TimitCorpusReader.speakers
nltk.corpus.reader.timit.TimitCorpusReader.html#speakers
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.fileids
nltk.corpus.reader.timit.TimitCorpusReader.html#fileids
ZopeInterfaceFunction
Method
VISIBLE
Return a list of file identifiers for the files that make up this corpus.
-
nltk.corpus.reader.timit.TimitCorpusReader.utteranceids
nltk.corpus.reader.timit.TimitCorpusReader.html#utteranceids
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.timit.TimitCorpusReader.transcription_dict
nltk.corpus.reader.timit.TimitCorpusReader.html#transcription_dict
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.timit.TimitCorpusReader.spkrid
nltk.corpus.reader.timit.TimitCorpusReader.html#spkrid
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.sentid
nltk.corpus.reader.timit.TimitCorpusReader.html#sentid
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.utterance
nltk.corpus.reader.timit.TimitCorpusReader.html#utterance
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.spkrutteranceids
nltk.corpus.reader.timit.TimitCorpusReader.html#spkrutteranceids
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.timit.TimitCorpusReader.spkrinfo
nltk.corpus.reader.timit.TimitCorpusReader.html#spkrinfo
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.timit.TimitCorpusReader.phones
nltk.corpus.reader.timit.TimitCorpusReader.html#phones
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.phone_times
nltk.corpus.reader.timit.TimitCorpusReader.html#phone_times
ZopeInterfaceFunction
Method
VISIBLE
offset is represented as a number of 16kHz samples!
-
nltk.corpus.reader.timit.TimitCorpusReader.words
nltk.corpus.reader.timit.TimitCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.word_times
nltk.corpus.reader.timit.TimitCorpusReader.html#word_times
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.sents
nltk.corpus.reader.timit.TimitCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.sent_times
nltk.corpus.reader.timit.TimitCorpusReader.html#sent_times
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.phone_trees
nltk.corpus.reader.timit.TimitCorpusReader.html#phone_trees
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.wav
nltk.corpus.reader.timit.TimitCorpusReader.html#wav
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.audiodata
nltk.corpus.reader.timit.TimitCorpusReader.html#audiodata
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader._utterance_fileids
nltk.corpus.reader.timit.TimitCorpusReader.html#_utterance_fileids
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.timit.TimitCorpusReader.play
nltk.corpus.reader.timit.TimitCorpusReader.html#play
ZopeInterfaceFunction
Method
VISIBLE
Play the given audio sample.
-
nltk.corpus.reader.timit.SpeakerInfo
nltk.corpus.reader.timit.SpeakerInfo.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.__init__
nltk.corpus.reader.timit.SpeakerInfo.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.id
nltk.corpus.reader.timit.SpeakerInfo.html#id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.sex
nltk.corpus.reader.timit.SpeakerInfo.html#sex
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.dr
nltk.corpus.reader.timit.SpeakerInfo.html#dr
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.use
nltk.corpus.reader.timit.SpeakerInfo.html#use
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.recdate
nltk.corpus.reader.timit.SpeakerInfo.html#recdate
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.birthdate
nltk.corpus.reader.timit.SpeakerInfo.html#birthdate
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.ht
nltk.corpus.reader.timit.SpeakerInfo.html#ht
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.race
nltk.corpus.reader.timit.SpeakerInfo.html#race
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.edu
nltk.corpus.reader.timit.SpeakerInfo.html#edu
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.SpeakerInfo.__repr__
nltk.corpus.reader.timit.SpeakerInfo.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.timit.read_timit_block
nltk.corpus.reader.timit.html#read_timit_block
ZopeInterfaceFunction
Function
VISIBLE
Block reader for timit tagged sentences, which are preceded by a sentence number that will be ignored.
-
nltk.corpus.reader.tagged.TaggedCorpusReader
nltk.corpus.reader.tagged.TaggedCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.tagged.TaggedCorpusReader.__init__
nltk.corpus.reader.tagged.TaggedCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Tagged Corpus reader for a set of documents located at the given root directory. Example usage:
-
nltk.corpus.reader.tagged.TaggedCorpusReader._sep
nltk.corpus.reader.tagged.TaggedCorpusReader.html#_sep
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusReader._word_tokenizer
nltk.corpus.reader.tagged.TaggedCorpusReader.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusReader._sent_tokenizer
nltk.corpus.reader.tagged.TaggedCorpusReader.html#_sent_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusReader._para_block_reader
nltk.corpus.reader.tagged.TaggedCorpusReader.html#_para_block_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusReader._tagset
nltk.corpus.reader.tagged.TaggedCorpusReader.html#_tagset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusReader.raw
nltk.corpus.reader.tagged.TaggedCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.tagged.TaggedCorpusReader.words
nltk.corpus.reader.tagged.TaggedCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.tagged.TaggedCorpusReader.sents
nltk.corpus.reader.tagged.TaggedCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.TaggedCorpusReader.paras
nltk.corpus.reader.tagged.TaggedCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.TaggedCorpusReader.tagged_words
nltk.corpus.reader.tagged.TaggedCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.TaggedCorpusReader.tagged_sents
nltk.corpus.reader.tagged.TaggedCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.tagged.TaggedCorpusReader.tagged_paras
nltk.corpus.reader.tagged.TaggedCorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A reader for part-of-speech tagged corpora whose documents are divided into categories based on their file identifiers.
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.__init__
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader._resolve
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#_resolve
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.raw
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.words
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.sents
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.paras
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.tagged_words
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.tagged_sents
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.tagged_paras
nltk.corpus.reader.tagged.CategorizedTaggedCorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.TaggedCorpusView
nltk.corpus.reader.tagged.TaggedCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.tagged.TaggedCorpusView.__init__
nltk.corpus.reader.tagged.TaggedCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.tagged.TaggedCorpusView._tagged
nltk.corpus.reader.tagged.TaggedCorpusView.html#_tagged
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusView._group_by_sent
nltk.corpus.reader.tagged.TaggedCorpusView.html#_group_by_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusView._group_by_para
nltk.corpus.reader.tagged.TaggedCorpusView.html#_group_by_para
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusView._sep
nltk.corpus.reader.tagged.TaggedCorpusView.html#_sep
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusView._word_tokenizer
nltk.corpus.reader.tagged.TaggedCorpusView.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusView._sent_tokenizer
nltk.corpus.reader.tagged.TaggedCorpusView.html#_sent_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusView._para_block_reader
nltk.corpus.reader.tagged.TaggedCorpusView.html#_para_block_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusView._tag_mapping_function
nltk.corpus.reader.tagged.TaggedCorpusView.html#_tag_mapping_function
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TaggedCorpusView.read_block
nltk.corpus.reader.tagged.TaggedCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Reads one paragraph at a time.
-
nltk.corpus.reader.tagged.MacMorphoCorpusReader
nltk.corpus.reader.tagged.MacMorphoCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.tagged.MacMorphoCorpusReader.__init__
nltk.corpus.reader.tagged.MacMorphoCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Tagged Corpus reader for a set of documents located at the given root directory. Example usage:
-
nltk.corpus.reader.tagged.MacMorphoCorpusReader._read_block
nltk.corpus.reader.tagged.MacMorphoCorpusReader.html#_read_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.tagged.TimitTaggedCorpusReader
nltk.corpus.reader.tagged.TimitTaggedCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A corpus reader for tagged sentences that are included in the TIMIT corpus.
-
nltk.corpus.reader.tagged.TimitTaggedCorpusReader.__init__
nltk.corpus.reader.tagged.TimitTaggedCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Tagged Corpus reader for a set of documents located at the given root directory. Example usage:
-
nltk.corpus.reader.tagged.TimitTaggedCorpusReader.paras
nltk.corpus.reader.tagged.TimitTaggedCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.tagged.TimitTaggedCorpusReader.tagged_paras
nltk.corpus.reader.tagged.TimitTaggedCorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.cmudict.CMUDictCorpusReader
nltk.corpus.reader.cmudict.CMUDictCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 4/4 methods documented
-
nltk.corpus.reader.cmudict.CMUDictCorpusReader.entries
nltk.corpus.reader.cmudict.CMUDictCorpusReader.html#entries
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.cmudict.CMUDictCorpusReader.raw
nltk.corpus.reader.cmudict.CMUDictCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.cmudict.CMUDictCorpusReader.words
nltk.corpus.reader.cmudict.CMUDictCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.cmudict.CMUDictCorpusReader.dict
nltk.corpus.reader.cmudict.CMUDictCorpusReader.html#dict
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.cmudict.read_cmudict_block
nltk.corpus.reader.cmudict.html#read_cmudict_block
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader
nltk.corpus.reader.conll.ConllCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.conll.ConllCorpusReader.WORDS
nltk.corpus.reader.conll.ConllCorpusReader.html#WORDS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.POS
nltk.corpus.reader.conll.ConllCorpusReader.html#POS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.TREE
nltk.corpus.reader.conll.ConllCorpusReader.html#TREE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.CHUNK
nltk.corpus.reader.conll.ConllCorpusReader.html#CHUNK
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.NE
nltk.corpus.reader.conll.ConllCorpusReader.html#NE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.SRL
nltk.corpus.reader.conll.ConllCorpusReader.html#SRL
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.IGNORE
nltk.corpus.reader.conll.ConllCorpusReader.html#IGNORE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.COLUMN_TYPES
nltk.corpus.reader.conll.ConllCorpusReader.html#COLUMN_TYPES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.__init__
nltk.corpus.reader.conll.ConllCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.conll.ConllCorpusReader._chunk_types
nltk.corpus.reader.conll.ConllCorpusReader.html#_chunk_types
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._colmap
nltk.corpus.reader.conll.ConllCorpusReader.html#_colmap
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._pos_in_tree
nltk.corpus.reader.conll.ConllCorpusReader.html#_pos_in_tree
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._root_label
nltk.corpus.reader.conll.ConllCorpusReader.html#_root_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._srl_includes_roleset
nltk.corpus.reader.conll.ConllCorpusReader.html#_srl_includes_roleset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._tree_class
nltk.corpus.reader.conll.ConllCorpusReader.html#_tree_class
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._tagset
nltk.corpus.reader.conll.ConllCorpusReader.html#_tagset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.sep
nltk.corpus.reader.conll.ConllCorpusReader.html#sep
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.raw
nltk.corpus.reader.conll.ConllCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.words
nltk.corpus.reader.conll.ConllCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.sents
nltk.corpus.reader.conll.ConllCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.tagged_words
nltk.corpus.reader.conll.ConllCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.tagged_sents
nltk.corpus.reader.conll.ConllCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.chunked_words
nltk.corpus.reader.conll.ConllCorpusReader.html#chunked_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.chunked_sents
nltk.corpus.reader.conll.ConllCorpusReader.html#chunked_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.parsed_sents
nltk.corpus.reader.conll.ConllCorpusReader.html#parsed_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.srl_spans
nltk.corpus.reader.conll.ConllCorpusReader.html#srl_spans
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.srl_instances
nltk.corpus.reader.conll.ConllCorpusReader.html#srl_instances
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader.iob_words
nltk.corpus.reader.conll.ConllCorpusReader.html#iob_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.conll.ConllCorpusReader.iob_sents
nltk.corpus.reader.conll.ConllCorpusReader.html#iob_sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.conll.ConllCorpusReader._grids
nltk.corpus.reader.conll.ConllCorpusReader.html#_grids
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._read_grid_block
nltk.corpus.reader.conll.ConllCorpusReader.html#_read_grid_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._get_words
nltk.corpus.reader.conll.ConllCorpusReader.html#_get_words
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._get_tagged_words
nltk.corpus.reader.conll.ConllCorpusReader.html#_get_tagged_words
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._get_iob_words
nltk.corpus.reader.conll.ConllCorpusReader.html#_get_iob_words
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._get_chunked_words
nltk.corpus.reader.conll.ConllCorpusReader.html#_get_chunked_words
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._get_parsed_sent
nltk.corpus.reader.conll.ConllCorpusReader.html#_get_parsed_sent
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._get_srl_spans
nltk.corpus.reader.conll.ConllCorpusReader.html#_get_srl_spans
ZopeInterfaceFunction
Method
PRIVATE
list of list of (start, end), tag) tuples
-
nltk.corpus.reader.conll.ConllCorpusReader._get_srl_instances
nltk.corpus.reader.conll.ConllCorpusReader.html#_get_srl_instances
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._require
nltk.corpus.reader.conll.ConllCorpusReader.html#_require
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllCorpusReader._get_column
nltk.corpus.reader.conll.ConllCorpusReader.html#_get_column
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstance
nltk.corpus.reader.conll.ConllSRLInstance.html
ZopeInterfaceClass
Class
VISIBLE
An SRL instance from a CoNLL corpus, which identifies and providing labels for the arguments of a single verb.
-
nltk.corpus.reader.conll.ConllSRLInstance.__init__
nltk.corpus.reader.conll.ConllSRLInstance.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstance.verb
nltk.corpus.reader.conll.ConllSRLInstance.html#verb
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.corpus.reader.conll.ConllSRLInstance.verb_head
nltk.corpus.reader.conll.ConllSRLInstance.html#verb_head
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.corpus.reader.conll.ConllSRLInstance.verb_stem
nltk.corpus.reader.conll.ConllSRLInstance.html#verb_stem
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstance.roleset
nltk.corpus.reader.conll.ConllSRLInstance.html#roleset
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstance.arguments
nltk.corpus.reader.conll.ConllSRLInstance.html#arguments
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.corpus.reader.conll.ConllSRLInstance.tagged_spans
nltk.corpus.reader.conll.ConllSRLInstance.html#tagged_spans
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A list of (span, id) tuples, specifying the location and type for each of the arguments, as well as the verb pieces, that make up this instance.
-
nltk.corpus.reader.conll.ConllSRLInstance.tree
nltk.corpus.reader.conll.ConllSRLInstance.html#tree
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The parse tree for the sentence containing this instance.
-
nltk.corpus.reader.conll.ConllSRLInstance.words
nltk.corpus.reader.conll.ConllSRLInstance.html#words
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A list of the words in the sentence containing this instance.
-
nltk.corpus.reader.conll.ConllSRLInstance.__repr__
nltk.corpus.reader.conll.ConllSRLInstance.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstance.pprint
nltk.corpus.reader.conll.ConllSRLInstance.html#pprint
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstanceList
nltk.corpus.reader.conll.ConllSRLInstanceList.html
ZopeInterfaceClass
Class
VISIBLE
Set of instances for a single sentence
-
nltk.corpus.reader.conll.ConllSRLInstanceList.__init__
nltk.corpus.reader.conll.ConllSRLInstanceList.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstanceList.tree
nltk.corpus.reader.conll.ConllSRLInstanceList.html#tree
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstanceList.__str__
nltk.corpus.reader.conll.ConllSRLInstanceList.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstanceList.pprint
nltk.corpus.reader.conll.ConllSRLInstanceList.html#pprint
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.conll.ConllSRLInstanceList._tree2conll
nltk.corpus.reader.conll.ConllSRLInstanceList.html#_tree2conll
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.conll.ConllChunkCorpusReader
nltk.corpus.reader.conll.ConllChunkCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A ConllCorpusReader whose data file contains three columns: words, pos, and chunk.
-
nltk.corpus.reader.conll.ConllChunkCorpusReader.__init__
nltk.corpus.reader.conll.ConllChunkCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bracket_parse.SORTTAGWRD
nltk.corpus.reader.bracket_parse.html#SORTTAGWRD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.TAGWORD
nltk.corpus.reader.bracket_parse.html#TAGWORD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.WORD
nltk.corpus.reader.bracket_parse.html#WORD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.EMPTY_BRACKETS
nltk.corpus.reader.bracket_parse.html#EMPTY_BRACKETS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for corpora that consist of parenthesis-delineated parse trees, like those found in the "combined" section of the Penn Treebank, e.g. "(S (NP (DT the) (JJ little) (NN dog)) (VP (VBD barked)))".
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.__init__
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader._detect_blocks
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html#_detect_blocks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader._tagset
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html#_tagset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader._read_block
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html#_read_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader._normalize
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html#_normalize
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader._parse
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader._tag
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html#_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader._word
nltk.corpus.reader.bracket_parse.BracketParseCorpusReader.html#_word
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A reader for parsed corpora whose documents are divided into categories based on their file identifiers. @author: Nathan Schneider <nschneid@cs.cmu.edu>
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.__init__
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader._resolve
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#_resolve
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.raw
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.words
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.sents
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.paras
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.tagged_words
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.tagged_sents
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.tagged_paras
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.parsed_words
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#parsed_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.parsed_sents
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#parsed_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.parsed_paras
nltk.corpus.reader.bracket_parse.CategorizedBracketParseCorpusReader.html#parsed_paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader.__init__
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader._normalize
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader.html#_normalize
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader._tag
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader.html#_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader._word
nltk.corpus.reader.bracket_parse.AlpinoCorpusReader.html#_word
ZopeInterfaceFunction
Method
PRIVATE
Return a correctly ordered list if words
-
nltk.corpus.reader.chunked.ChunkedCorpusReader
nltk.corpus.reader.chunked.ChunkedCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.__init__
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.chunked.ChunkedCorpusReader._cv_args
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#_cv_args
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Arguments for corpus views generated by this corpus: a tuple (str2chunktree, sent_tokenizer, para_block_tokenizer)
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.raw
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.words
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.sents
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.paras
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.tagged_words
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.tagged_sents
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.tagged_paras
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.chunked_words
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#chunked_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.chunked_sents
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#chunked_sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.chunked.ChunkedCorpusReader.chunked_paras
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#chunked_paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.chunked.ChunkedCorpusReader._read_block
nltk.corpus.reader.chunked.ChunkedCorpusReader.html#_read_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView
nltk.corpus.reader.chunked.ChunkedCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView.__init__
nltk.corpus.reader.chunked.ChunkedCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.chunked.ChunkedCorpusView._tagged
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_tagged
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView._group_by_sent
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_group_by_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView._group_by_para
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_group_by_para
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView._chunked
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_chunked
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView._str2chunktree
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_str2chunktree
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView._sent_tokenizer
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_sent_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView._para_block_reader
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_para_block_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView._source_tagset
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_source_tagset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView._target_tagset
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_target_tagset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chunked.ChunkedCorpusView.read_block
nltk.corpus.reader.chunked.ChunkedCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.corpus.reader.chunked.ChunkedCorpusView._untag
nltk.corpus.reader.chunked.ChunkedCorpusView.html#_untag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordlist.WordListCorpusReader
nltk.corpus.reader.wordlist.WordListCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
List of words, one per line. Blank lines are ignored.
-
nltk.corpus.reader.wordlist.WordListCorpusReader.words
nltk.corpus.reader.wordlist.WordListCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordlist.WordListCorpusReader.raw
nltk.corpus.reader.wordlist.WordListCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordlist.SwadeshCorpusReader
nltk.corpus.reader.wordlist.SwadeshCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 method documented
-
nltk.corpus.reader.wordlist.SwadeshCorpusReader.entries
nltk.corpus.reader.wordlist.SwadeshCorpusReader.html#entries
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.wordlist.NonbreakingPrefixesCorpusReader
nltk.corpus.reader.wordlist.NonbreakingPrefixesCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
This is a class to read the nonbreaking prefixes textfiles from the Moses Machine Translation toolkit. These lists are used in the Python port of the Moses' word tokenizer.
-
nltk.corpus.reader.wordlist.NonbreakingPrefixesCorpusReader.available_langs
nltk.corpus.reader.wordlist.NonbreakingPrefixesCorpusReader.html#available_langs
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordlist.NonbreakingPrefixesCorpusReader.words
nltk.corpus.reader.wordlist.NonbreakingPrefixesCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
This module returns a list of nonbreaking prefixes for the specified language(s).
-
nltk.corpus.reader.wordlist.UnicharsCorpusReader
nltk.corpus.reader.wordlist.UnicharsCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.wordlist.UnicharsCorpusReader.available_categories
nltk.corpus.reader.wordlist.UnicharsCorpusReader.html#available_categories
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordlist.UnicharsCorpusReader.chars
nltk.corpus.reader.wordlist.UnicharsCorpusReader.html#chars
ZopeInterfaceFunction
Method
VISIBLE
This module returns a list of characters from the Perl Unicode Properties. They are very useful when porting Perl tokenizers to Python.
-
nltk.corpus.reader.wordlist.MWAPPDBCorpusReader
nltk.corpus.reader.wordlist.MWAPPDBCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.wordlist.MWAPPDBCorpusReader.mwa_ppdb_xxxl_file
nltk.corpus.reader.wordlist.MWAPPDBCorpusReader.html#mwa_ppdb_xxxl_file
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordlist.MWAPPDBCorpusReader.entries
nltk.corpus.reader.wordlist.MWAPPDBCorpusReader.html#entries
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.xmldocs.XMLCorpusReader
nltk.corpus.reader.xmldocs.XMLCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Corpus reader for corpora whose documents are xml files.
-
nltk.corpus.reader.xmldocs.XMLCorpusReader.__init__
nltk.corpus.reader.xmldocs.XMLCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.xmldocs.XMLCorpusReader._wrap_etree
nltk.corpus.reader.xmldocs.XMLCorpusReader.html#_wrap_etree
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusReader.xml
nltk.corpus.reader.xmldocs.XMLCorpusReader.html#xml
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusReader.words
nltk.corpus.reader.xmldocs.XMLCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Returns all of the words and punctuation symbols in the specified file that were in text nodes -- ie, tags are ignored. Like the xml() method, fileid can only specify one file.
-
nltk.corpus.reader.xmldocs.XMLCorpusReader.raw
nltk.corpus.reader.xmldocs.XMLCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusView
nltk.corpus.reader.xmldocs.XMLCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.xmldocs.XMLCorpusView._DEBUG
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_DEBUG
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusView._BLOCK_SIZE
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_BLOCK_SIZE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusView.__init__
nltk.corpus.reader.xmldocs.XMLCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view based on a specified XML file.
-
nltk.corpus.reader.xmldocs.XMLCorpusView._tagspec
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_tagspec
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The tag specification for this corpus view.
-
nltk.corpus.reader.xmldocs.XMLCorpusView._tag_context
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_tag_context
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.corpus.reader.xmldocs.XMLCorpusView._detect_encoding
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_detect_encoding
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusView.handle_elt 0
nltk.corpus.reader.xmldocs.XMLCorpusView.html#handle_elt%200
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusView.handle_elt
nltk.corpus.reader.xmldocs.XMLCorpusView.html#handle_elt
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.xmldocs.XMLCorpusView._VALID_XML_RE
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_VALID_XML_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusView._XML_TAG_NAME
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_XML_TAG_NAME
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusView._XML_PIECE
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_XML_PIECE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.xmldocs.XMLCorpusView._read_xml_fragment
nltk.corpus.reader.xmldocs.XMLCorpusView.html#_read_xml_fragment
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.corpus.reader.xmldocs.XMLCorpusView.read_block
nltk.corpus.reader.xmldocs.XMLCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read from stream until we find at least one element that matches tagspec, and return the result of applying elt_handler to each element found.
-
nltk.corpus.reader.ppattach.PPAttachment
nltk.corpus.reader.ppattach.PPAttachment.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachment.__init__
nltk.corpus.reader.ppattach.PPAttachment.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachment.sent
nltk.corpus.reader.ppattach.PPAttachment.html#sent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachment.verb
nltk.corpus.reader.ppattach.PPAttachment.html#verb
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachment.noun1
nltk.corpus.reader.ppattach.PPAttachment.html#noun1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachment.prep
nltk.corpus.reader.ppattach.PPAttachment.html#prep
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachment.noun2
nltk.corpus.reader.ppattach.PPAttachment.html#noun2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachment.attachment
nltk.corpus.reader.ppattach.PPAttachment.html#attachment
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachment.__repr__
nltk.corpus.reader.ppattach.PPAttachment.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
sentence_id verb noun1 preposition noun2 attachment
-
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.attachments
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.html#attachments
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.tuples
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.html#tuples
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.raw
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader._read_tuple_block
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.html#_read_tuple_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader._read_obj_block
nltk.corpus.reader.ppattach.PPAttachmentCorpusReader.html#_read_obj_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.senseval.SensevalInstance
nltk.corpus.reader.senseval.SensevalInstance.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalInstance.__init__
nltk.corpus.reader.senseval.SensevalInstance.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalInstance.word
nltk.corpus.reader.senseval.SensevalInstance.html#word
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalInstance.senses
nltk.corpus.reader.senseval.SensevalInstance.html#senses
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalInstance.position
nltk.corpus.reader.senseval.SensevalInstance.html#position
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalInstance.context
nltk.corpus.reader.senseval.SensevalInstance.html#context
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalInstance.__repr__
nltk.corpus.reader.senseval.SensevalInstance.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalCorpusReader
nltk.corpus.reader.senseval.SensevalCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/3 method documented
-
nltk.corpus.reader.senseval.SensevalCorpusReader.instances
nltk.corpus.reader.senseval.SensevalCorpusReader.html#instances
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalCorpusReader.raw
nltk.corpus.reader.senseval.SensevalCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.senseval.SensevalCorpusReader._entry
nltk.corpus.reader.senseval.SensevalCorpusReader.html#_entry
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.senseval.SensevalCorpusView
nltk.corpus.reader.senseval.SensevalCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.senseval.SensevalCorpusView.__init__
nltk.corpus.reader.senseval.SensevalCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.senseval.SensevalCorpusView._word_tokenizer
nltk.corpus.reader.senseval.SensevalCorpusView.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.senseval.SensevalCorpusView._lexelt_starts
nltk.corpus.reader.senseval.SensevalCorpusView.html#_lexelt_starts
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.senseval.SensevalCorpusView._lexelts
nltk.corpus.reader.senseval.SensevalCorpusView.html#_lexelts
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.senseval.SensevalCorpusView.read_block
nltk.corpus.reader.senseval.SensevalCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.corpus.reader.senseval.SensevalCorpusView._parse_instance
nltk.corpus.reader.senseval.SensevalCorpusView.html#_parse_instance
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.senseval._fixXML
nltk.corpus.reader.senseval.html#_fixXML
ZopeInterfaceFunction
Function
PRIVATE
Fix the various issues with Senseval pseudo-XML.
-
nltk.corpus.reader.ieer.titles
nltk.corpus.reader.ieer.html#titles
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.documents
nltk.corpus.reader.ieer.html#documents
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERDocument
nltk.corpus.reader.ieer.IEERDocument.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERDocument.__init__
nltk.corpus.reader.ieer.IEERDocument.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERDocument.text
nltk.corpus.reader.ieer.IEERDocument.html#text
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERDocument.docno
nltk.corpus.reader.ieer.IEERDocument.html#docno
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERDocument.doctype
nltk.corpus.reader.ieer.IEERDocument.html#doctype
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERDocument.date_time
nltk.corpus.reader.ieer.IEERDocument.html#date_time
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERDocument.headline
nltk.corpus.reader.ieer.IEERDocument.html#headline
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERDocument.__repr__
nltk.corpus.reader.ieer.IEERDocument.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERCorpusReader
nltk.corpus.reader.ieer.IEERCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.corpus.reader.ieer.IEERCorpusReader.raw
nltk.corpus.reader.ieer.IEERCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERCorpusReader.docs
nltk.corpus.reader.ieer.IEERCorpusReader.html#docs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERCorpusReader.parsed_docs
nltk.corpus.reader.ieer.IEERCorpusReader.html#parsed_docs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ieer.IEERCorpusReader._read_parsed_block
nltk.corpus.reader.ieer.IEERCorpusReader.html#_read_parsed_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ieer.IEERCorpusReader._parse
nltk.corpus.reader.ieer.IEERCorpusReader.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ieer.IEERCorpusReader._read_block
nltk.corpus.reader.ieer.IEERCorpusReader.html#_read_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.sinica_treebank.IDENTIFIER
nltk.corpus.reader.sinica_treebank.html#IDENTIFIER
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.sinica_treebank.APPENDIX
nltk.corpus.reader.sinica_treebank.html#APPENDIX
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.sinica_treebank.TAGWORD
nltk.corpus.reader.sinica_treebank.html#TAGWORD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.sinica_treebank.WORD
nltk.corpus.reader.sinica_treebank.html#WORD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for the sinica treebank.
-
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader._read_block
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader.html#_read_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader._parse
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader._tag
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader.html#_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader._word
nltk.corpus.reader.sinica_treebank.SinicaTreebankCorpusReader.html#_word
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusReader
nltk.corpus.reader.indian.IndianCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
List of words, one per line. Blank lines are ignored.
-
nltk.corpus.reader.indian.IndianCorpusReader.words
nltk.corpus.reader.indian.IndianCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusReader.tagged_words
nltk.corpus.reader.indian.IndianCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusReader.sents
nltk.corpus.reader.indian.IndianCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusReader.tagged_sents
nltk.corpus.reader.indian.IndianCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusReader.raw
nltk.corpus.reader.indian.IndianCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusView
nltk.corpus.reader.indian.IndianCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusView.__init__
nltk.corpus.reader.indian.IndianCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.indian.IndianCorpusView._tagged
nltk.corpus.reader.indian.IndianCorpusView.html#_tagged
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusView._group_by_sent
nltk.corpus.reader.indian.IndianCorpusView.html#_group_by_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusView._tag_mapping_function
nltk.corpus.reader.indian.IndianCorpusView.html#_tag_mapping_function
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.indian.IndianCorpusView.read_block
nltk.corpus.reader.indian.IndianCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.toolbox.StandardFormat
nltk.toolbox.StandardFormat.html
ZopeInterfaceClass
Class
VISIBLE
Class for reading and processing standard format marker files and strings.
-
nltk.toolbox.StandardFormat.__init__
nltk.toolbox.StandardFormat.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.toolbox.StandardFormat._encoding
nltk.toolbox.StandardFormat.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.toolbox.StandardFormat.open
nltk.toolbox.StandardFormat.html#open
ZopeInterfaceFunction
Method
VISIBLE
Open a standard format marker file for sequential reading.
-
nltk.toolbox.StandardFormat._file
nltk.toolbox.StandardFormat.html#_file
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.toolbox.StandardFormat.open_string
nltk.toolbox.StandardFormat.html#open_string
ZopeInterfaceFunction
Method
VISIBLE
Open a standard format marker string for sequential reading.
-
nltk.toolbox.StandardFormat.raw_fields
nltk.toolbox.StandardFormat.html#raw_fields
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator that returns the next field in a (marker, value) tuple. Linebreaks and trailing white space are preserved except for the final newline in each field.
-
nltk.toolbox.StandardFormat.line_num
nltk.toolbox.StandardFormat.html#line_num
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.toolbox.StandardFormat.fields
nltk.toolbox.StandardFormat.html#fields
ZopeInterfaceFunction
Method
VISIBLE
Return an iterator that returns the next field in a (marker, value) tuple, where marker and value are unicode strings if an encoding was specified in the fields() method. Otherwise they are non-unicode strings.
-
nltk.toolbox.StandardFormat.close
nltk.toolbox.StandardFormat.html#close
ZopeInterfaceFunction
Method
VISIBLE
Close a previously opened standard format marker file or string.
-
nltk.toolbox.ToolboxData
nltk.toolbox.ToolboxData.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 2/4 methods documented
-
nltk.toolbox.ToolboxData.parse
nltk.toolbox.ToolboxData.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.toolbox.ToolboxData._record_parse
nltk.toolbox.ToolboxData.html#_record_parse
ZopeInterfaceFunction
Method
PRIVATE
Returns an element tree structure corresponding to a toolbox data file with all markers at the same level.
-
nltk.toolbox.ToolboxData._tree2etree
nltk.toolbox.ToolboxData.html#_tree2etree
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.toolbox.ToolboxData._chunk_parse
nltk.toolbox.ToolboxData.html#_chunk_parse
ZopeInterfaceFunction
Method
PRIVATE
Returns an element tree structure corresponding to a toolbox data file parsed according to the chunk grammar.
-
nltk.toolbox._is_value
nltk.toolbox.html#_is_value
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.toolbox.to_sfm_string
nltk.toolbox.html#to_sfm_string
ZopeInterfaceFunction
Function
VISIBLE
Return a string with a standard format representation of the toolbox data in tree (tree can be a toolbox database or a single record).
-
nltk.toolbox.ToolboxSettings
nltk.toolbox.ToolboxSettings.html
ZopeInterfaceClass
Class
VISIBLE
This class is the base class for settings files.
-
nltk.toolbox.ToolboxSettings.__init__
nltk.toolbox.ToolboxSettings.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.toolbox.ToolboxSettings.parse
nltk.toolbox.ToolboxSettings.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of toolbox settings file with a nested structure.
-
nltk.toolbox.to_settings_string
nltk.toolbox.html#to_settings_string
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.toolbox._to_settings_string
nltk.toolbox.html#_to_settings_string
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.toolbox.remove_blanks
nltk.toolbox.html#remove_blanks
ZopeInterfaceFunction
Function
VISIBLE
Remove all elements and subelements with no text and no child elements.
-
nltk.toolbox.add_default_fields
nltk.toolbox.html#add_default_fields
ZopeInterfaceFunction
Function
VISIBLE
Add blank elements and subelements specified in default_fields.
-
nltk.toolbox.sort_fields
nltk.toolbox.html#sort_fields
ZopeInterfaceFunction
Function
VISIBLE
Sort the elements and subelements in order specified in field_orders.
-
nltk.toolbox._sort_fields
nltk.toolbox.html#_sort_fields
ZopeInterfaceFunction
Function
PRIVATE
sort the children of elem
-
nltk.toolbox.add_blank_lines
nltk.toolbox.html#add_blank_lines
ZopeInterfaceFunction
Function
VISIBLE
Add blank lines before all elements and subelements specified in blank_before.
-
nltk.toolbox.demo
nltk.toolbox.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.toolbox.ToolboxCorpusReader
nltk.corpus.reader.toolbox.ToolboxCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.toolbox.ToolboxCorpusReader.xml
nltk.corpus.reader.toolbox.ToolboxCorpusReader.html#xml
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.toolbox.ToolboxCorpusReader.fields
nltk.corpus.reader.toolbox.ToolboxCorpusReader.html#fields
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.toolbox.ToolboxCorpusReader.entries
nltk.corpus.reader.toolbox.ToolboxCorpusReader.html#entries
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.toolbox.ToolboxCorpusReader.words
nltk.corpus.reader.toolbox.ToolboxCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.toolbox.ToolboxCorpusReader.raw
nltk.corpus.reader.toolbox.ToolboxCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.toolbox.demo
nltk.corpus.reader.toolbox.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader
nltk.corpus.reader.ycoe.YCOECorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Corpus reader for the York-Toronto-Helsinki Parsed Corpus of Old English Prose (YCOE), a 1.5 million word syntactically-annotated corpus of Old English prose texts.
-
nltk.corpus.reader.ycoe.YCOECorpusReader.__init__
nltk.corpus.reader.ycoe.YCOECorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.ycoe.YCOECorpusReader._psd_reader
nltk.corpus.reader.ycoe.YCOECorpusReader.html#_psd_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader._pos_reader
nltk.corpus.reader.ycoe.YCOECorpusReader.html#_pos_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader._documents
nltk.corpus.reader.ycoe.YCOECorpusReader.html#_documents
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader.documents
nltk.corpus.reader.ycoe.YCOECorpusReader.html#documents
ZopeInterfaceFunction
Method
VISIBLE
Return a list of document identifiers for all documents in this corpus, or for the documents with the given file(s) if specified.
-
nltk.corpus.reader.ycoe.YCOECorpusReader.fileids
nltk.corpus.reader.ycoe.YCOECorpusReader.html#fileids
ZopeInterfaceFunction
Method
VISIBLE
Return a list of file identifiers for the files that make up this corpus, or that store the given document(s) if specified.
-
nltk.corpus.reader.ycoe.YCOECorpusReader._getfileids
nltk.corpus.reader.ycoe.YCOECorpusReader.html#_getfileids
ZopeInterfaceFunction
Method
PRIVATE
Helper that selects the appropriate fileids for a given set of documents from a given subcorpus (pos or psd).
-
nltk.corpus.reader.ycoe.YCOECorpusReader.words
nltk.corpus.reader.ycoe.YCOECorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader.sents
nltk.corpus.reader.ycoe.YCOECorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader.paras
nltk.corpus.reader.ycoe.YCOECorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader.tagged_words
nltk.corpus.reader.ycoe.YCOECorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader.tagged_sents
nltk.corpus.reader.ycoe.YCOECorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader.tagged_paras
nltk.corpus.reader.ycoe.YCOECorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOECorpusReader.parsed_sents
nltk.corpus.reader.ycoe.YCOECorpusReader.html#parsed_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOEParseCorpusReader
nltk.corpus.reader.ycoe.YCOEParseCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Specialized version of the standard bracket parse corpus reader that strips out (CODE ...) and (ID ...) nodes.
-
nltk.corpus.reader.ycoe.YCOEParseCorpusReader._parse
nltk.corpus.reader.ycoe.YCOEParseCorpusReader.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ycoe.YCOETaggedCorpusReader
nltk.corpus.reader.ycoe.YCOETaggedCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.ycoe.YCOETaggedCorpusReader.__init__
nltk.corpus.reader.ycoe.YCOETaggedCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Tagged Corpus reader for a set of documents located at the given root directory. Example usage:
-
nltk.corpus.reader.ycoe.documents
nltk.corpus.reader.ycoe.html#documents
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.norm
nltk.corpus.reader.rte.html#norm
ZopeInterfaceFunction
Function
VISIBLE
Normalize the string value in an RTE pair's value or entailment attribute as an integer (1, 0).
-
nltk.corpus.reader.rte.RTEPair
nltk.corpus.reader.rte.RTEPair.html
ZopeInterfaceClass
Class
VISIBLE
Container for RTE text-hypothesis pairs.
-
nltk.corpus.reader.rte.RTEPair.__init__
nltk.corpus.reader.rte.RTEPair.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.rte.RTEPair.challenge
nltk.corpus.reader.rte.RTEPair.html#challenge
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTEPair.id
nltk.corpus.reader.rte.RTEPair.html#id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTEPair.gid
nltk.corpus.reader.rte.RTEPair.html#gid
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTEPair.text
nltk.corpus.reader.rte.RTEPair.html#text
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTEPair.hyp
nltk.corpus.reader.rte.RTEPair.html#hyp
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTEPair.value
nltk.corpus.reader.rte.RTEPair.html#value
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTEPair.task
nltk.corpus.reader.rte.RTEPair.html#task
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTEPair.length
nltk.corpus.reader.rte.RTEPair.html#length
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTEPair.__repr__
nltk.corpus.reader.rte.RTEPair.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.rte.RTECorpusReader
nltk.corpus.reader.rte.RTECorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Corpus reader for corpora in RTE challenges.
-
nltk.corpus.reader.rte.RTECorpusReader._read_etree
nltk.corpus.reader.rte.RTECorpusReader.html#_read_etree
ZopeInterfaceFunction
Method
PRIVATE
Map the XML input into an RTEPair.
-
nltk.corpus.reader.rte.RTECorpusReader.pairs
nltk.corpus.reader.rte.RTECorpusReader.html#pairs
ZopeInterfaceFunction
Method
VISIBLE
Build a list of RTEPairs from a RTE corpus.
-
nltk.corpus.reader.string_category.StringCategoryCorpusReader
nltk.corpus.reader.string_category.StringCategoryCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 2/4 methods documented
-
nltk.corpus.reader.string_category.StringCategoryCorpusReader.__init__
nltk.corpus.reader.string_category.StringCategoryCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.string_category.StringCategoryCorpusReader._delimiter
nltk.corpus.reader.string_category.StringCategoryCorpusReader.html#_delimiter
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.string_category.StringCategoryCorpusReader.tuples
nltk.corpus.reader.string_category.StringCategoryCorpusReader.html#tuples
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.string_category.StringCategoryCorpusReader.raw
nltk.corpus.reader.string_category.StringCategoryCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.string_category.StringCategoryCorpusReader._read_tuple_block
nltk.corpus.reader.string_category.StringCategoryCorpusReader.html#_read_tuple_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankCorpusReader
nltk.corpus.reader.propbank.PropbankCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.propbank.PropbankCorpusReader.__init__
nltk.corpus.reader.propbank.PropbankCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.propbank.PropbankCorpusReader._propfile
nltk.corpus.reader.propbank.PropbankCorpusReader.html#_propfile
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankCorpusReader._framefiles
nltk.corpus.reader.propbank.PropbankCorpusReader.html#_framefiles
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankCorpusReader._verbsfile
nltk.corpus.reader.propbank.PropbankCorpusReader.html#_verbsfile
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankCorpusReader._parse_fileid_xform
nltk.corpus.reader.propbank.PropbankCorpusReader.html#_parse_fileid_xform
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankCorpusReader._parse_corpus
nltk.corpus.reader.propbank.PropbankCorpusReader.html#_parse_corpus
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankCorpusReader.raw
nltk.corpus.reader.propbank.PropbankCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.propbank.PropbankCorpusReader.instances
nltk.corpus.reader.propbank.PropbankCorpusReader.html#instances
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.propbank.PropbankCorpusReader.lines
nltk.corpus.reader.propbank.PropbankCorpusReader.html#lines
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.propbank.PropbankCorpusReader.roleset
nltk.corpus.reader.propbank.PropbankCorpusReader.html#roleset
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.propbank.PropbankCorpusReader.rolesets
nltk.corpus.reader.propbank.PropbankCorpusReader.html#rolesets
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.propbank.PropbankCorpusReader.verbs
nltk.corpus.reader.propbank.PropbankCorpusReader.html#verbs
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.propbank.PropbankCorpusReader._read_instance_block
nltk.corpus.reader.propbank.PropbankCorpusReader.html#_read_instance_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInstance
nltk.corpus.reader.propbank.PropbankInstance.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 3/3 properties, 9/9 instance variables, 0/1 class variable, 0/4 method, 0/1 static method documented
-
nltk.corpus.reader.propbank.PropbankInstance.__init__
nltk.corpus.reader.propbank.PropbankInstance.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInstance.fileid
nltk.corpus.reader.propbank.PropbankInstance.html#fileid
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The name of the file containing the parse tree for this instance's sentence.
-
nltk.corpus.reader.propbank.PropbankInstance.sentnum
nltk.corpus.reader.propbank.PropbankInstance.html#sentnum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The sentence number of this sentence within fileid. Indexing starts from zero.
-
nltk.corpus.reader.propbank.PropbankInstance.wordnum
nltk.corpus.reader.propbank.PropbankInstance.html#wordnum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The word number of this instance's predicate within its containing sentence. Word numbers are indexed starting from zero, and include traces and other empty parse elements.
-
nltk.corpus.reader.propbank.PropbankInstance.tagger
nltk.corpus.reader.propbank.PropbankInstance.html#tagger
ZopeInterfaceAttribute
Instance Variable
VISIBLE
An identifier for the tagger who tagged this instance; or 'gold' if this is an adjuticated instance.
-
nltk.corpus.reader.propbank.PropbankInstance.roleset
nltk.corpus.reader.propbank.PropbankInstance.html#roleset
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The name of the roleset used by this instance's predicate. Use propbank.roleset() <PropbankCorpusReader.roleset> to look up information about the roleset.
-
nltk.corpus.reader.propbank.PropbankInstance.inflection
nltk.corpus.reader.propbank.PropbankInstance.html#inflection
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A PropbankInflection object describing the inflection of this instance's predicate.
-
nltk.corpus.reader.propbank.PropbankInstance.predicate
nltk.corpus.reader.propbank.PropbankInstance.html#predicate
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A PropbankTreePointer indicating the position of this instance's predicate within its containing sentence.
-
nltk.corpus.reader.propbank.PropbankInstance.arguments
nltk.corpus.reader.propbank.PropbankInstance.html#arguments
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.corpus.reader.propbank.PropbankInstance.parse_corpus
nltk.corpus.reader.propbank.PropbankInstance.html#parse_corpus
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A corpus reader for the parse trees corresponding to the instances in this propbank corpus.
-
nltk.corpus.reader.propbank.PropbankInstance.baseform
nltk.corpus.reader.propbank.PropbankInstance.html#baseform
ZopeInterfaceAttribute
Property
VISIBLE
The baseform of the predicate.
-
nltk.corpus.reader.propbank.PropbankInstance.sensenumber
nltk.corpus.reader.propbank.PropbankInstance.html#sensenumber
ZopeInterfaceAttribute
Property
VISIBLE
The sense number of the predicate.
-
nltk.corpus.reader.propbank.PropbankInstance.predid
nltk.corpus.reader.propbank.PropbankInstance.html#predid
ZopeInterfaceAttribute
Property
VISIBLE
Identifier of the predicate.
-
nltk.corpus.reader.propbank.PropbankInstance.__repr__
nltk.corpus.reader.propbank.PropbankInstance.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInstance.__str__
nltk.corpus.reader.propbank.PropbankInstance.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInstance._get_tree
nltk.corpus.reader.propbank.PropbankInstance.html#_get_tree
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInstance.tree
nltk.corpus.reader.propbank.PropbankInstance.html#tree
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInstance.parse
nltk.corpus.reader.propbank.PropbankInstance.html#parse
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankPointer
nltk.corpus.reader.propbank.PropbankPointer.html
ZopeInterfaceClass
Class
VISIBLE
A pointer used by propbank to identify one or more constituents in a parse tree. PropbankPointer is an abstract base class with three concrete subclasses:
-
nltk.corpus.reader.propbank.PropbankPointer.__init__
nltk.corpus.reader.propbank.PropbankPointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankChainTreePointer
nltk.corpus.reader.propbank.PropbankChainTreePointer.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 instance variable, 0/4 method documented
-
nltk.corpus.reader.propbank.PropbankChainTreePointer.__init__
nltk.corpus.reader.propbank.PropbankChainTreePointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankChainTreePointer.pieces
nltk.corpus.reader.propbank.PropbankChainTreePointer.html#pieces
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A list of the pieces that make up this chain. Elements may be either PropbankSplitTreePointer or PropbankTreePointer pointers.
-
nltk.corpus.reader.propbank.PropbankChainTreePointer.__str__
nltk.corpus.reader.propbank.PropbankChainTreePointer.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankChainTreePointer.__repr__
nltk.corpus.reader.propbank.PropbankChainTreePointer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankChainTreePointer.select
nltk.corpus.reader.propbank.PropbankChainTreePointer.html#select
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankSplitTreePointer
nltk.corpus.reader.propbank.PropbankSplitTreePointer.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 instance variable, 0/4 method documented
-
nltk.corpus.reader.propbank.PropbankSplitTreePointer.__init__
nltk.corpus.reader.propbank.PropbankSplitTreePointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankSplitTreePointer.pieces
nltk.corpus.reader.propbank.PropbankSplitTreePointer.html#pieces
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A list of the pieces that make up this chain. Elements are all PropbankTreePointer pointers.
-
nltk.corpus.reader.propbank.PropbankSplitTreePointer.__str__
nltk.corpus.reader.propbank.PropbankSplitTreePointer.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankSplitTreePointer.__repr__
nltk.corpus.reader.propbank.PropbankSplitTreePointer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankSplitTreePointer.select
nltk.corpus.reader.propbank.PropbankSplitTreePointer.html#select
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer
nltk.corpus.reader.propbank.PropbankTreePointer.html
ZopeInterfaceClass
Class
VISIBLE
wordnum:height*wordnum:height*... wordnum:height,
-
nltk.corpus.reader.propbank.PropbankTreePointer.__init__
nltk.corpus.reader.propbank.PropbankTreePointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.wordnum
nltk.corpus.reader.propbank.PropbankTreePointer.html#wordnum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.height
nltk.corpus.reader.propbank.PropbankTreePointer.html#height
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.parse
nltk.corpus.reader.propbank.PropbankTreePointer.html#parse
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.__str__
nltk.corpus.reader.propbank.PropbankTreePointer.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.__repr__
nltk.corpus.reader.propbank.PropbankTreePointer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.__eq__
nltk.corpus.reader.propbank.PropbankTreePointer.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.__ne__
nltk.corpus.reader.propbank.PropbankTreePointer.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.__lt__
nltk.corpus.reader.propbank.PropbankTreePointer.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.select
nltk.corpus.reader.propbank.PropbankTreePointer.html#select
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankTreePointer.treepos
nltk.corpus.reader.propbank.PropbankTreePointer.html#treepos
ZopeInterfaceFunction
Method
VISIBLE
Convert this pointer to a standard 'tree position' pointer, given that it points to the given tree.
-
nltk.corpus.reader.propbank.PropbankInflection
nltk.corpus.reader.propbank.PropbankInflection.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.INFINITIVE
nltk.corpus.reader.propbank.PropbankInflection.html#INFINITIVE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.GERUND
nltk.corpus.reader.propbank.PropbankInflection.html#GERUND
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.PARTICIPLE
nltk.corpus.reader.propbank.PropbankInflection.html#PARTICIPLE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.FINITE
nltk.corpus.reader.propbank.PropbankInflection.html#FINITE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.FUTURE
nltk.corpus.reader.propbank.PropbankInflection.html#FUTURE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.PAST
nltk.corpus.reader.propbank.PropbankInflection.html#PAST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.PRESENT
nltk.corpus.reader.propbank.PropbankInflection.html#PRESENT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.PERFECT
nltk.corpus.reader.propbank.PropbankInflection.html#PERFECT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.PROGRESSIVE
nltk.corpus.reader.propbank.PropbankInflection.html#PROGRESSIVE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.PERFECT_AND_PROGRESSIVE
nltk.corpus.reader.propbank.PropbankInflection.html#PERFECT_AND_PROGRESSIVE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.THIRD_PERSON
nltk.corpus.reader.propbank.PropbankInflection.html#THIRD_PERSON
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.ACTIVE
nltk.corpus.reader.propbank.PropbankInflection.html#ACTIVE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.PASSIVE
nltk.corpus.reader.propbank.PropbankInflection.html#PASSIVE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.NONE
nltk.corpus.reader.propbank.PropbankInflection.html#NONE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.__init__
nltk.corpus.reader.propbank.PropbankInflection.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.form
nltk.corpus.reader.propbank.PropbankInflection.html#form
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.tense
nltk.corpus.reader.propbank.PropbankInflection.html#tense
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.aspect
nltk.corpus.reader.propbank.PropbankInflection.html#aspect
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.person
nltk.corpus.reader.propbank.PropbankInflection.html#person
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.voice
nltk.corpus.reader.propbank.PropbankInflection.html#voice
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.__str__
nltk.corpus.reader.propbank.PropbankInflection.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.__repr__
nltk.corpus.reader.propbank.PropbankInflection.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection._VALIDATE
nltk.corpus.reader.propbank.PropbankInflection.html#_VALIDATE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.propbank.PropbankInflection.parse
nltk.corpus.reader.propbank.PropbankInflection.html#parse
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
An NLTK interface to the VerbNet verb lexicon.
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.__init__
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._lemma_to_class
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_lemma_to_class
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A dictionary mapping from verb lemma strings to lists of VerbNet class identifiers.
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._wordnet_to_class
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_wordnet_to_class
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A dictionary mapping from wordnet identifier strings to lists of VerbNet class identifiers.
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._class_to_fileid
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_class_to_fileid
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A dictionary mapping from class identifiers to corresponding file identifiers. The keys of this dictionary provide a complete list of all classes and subclasses.
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._shortid_to_longid
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_shortid_to_longid
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._LONGID_RE
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_LONGID_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Regular expression that matches (and decomposes) longids
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._SHORTID_RE
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_SHORTID_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Regular expression that matches shortids
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._INDEX_RE
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_INDEX_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Regular expression used by _index() to quickly scan the corpus for basic information.
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.lemmas
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#lemmas
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all verb lemmas that appear in any class, or in the classid if specified.
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.wordnetids
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#wordnetids
ZopeInterfaceFunction
Method
VISIBLE
Return a list of all wordnet identifiers that appear in any class, or in classid if specified.
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.classids
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#classids
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.vnclass
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#vnclass
ZopeInterfaceFunction
Method
VISIBLE
Returns VerbNet class ElementTree
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.fileids
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#fileids
ZopeInterfaceFunction
Method
VISIBLE
Return a list of fileids that make up this corpus. If vnclass_ids is specified, then return the fileids that make up the specified VerbNet class(es).
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.frames
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#frames
ZopeInterfaceFunction
Method
VISIBLE
Given a VerbNet class, this method returns VerbNet frames
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.subclasses
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#subclasses
ZopeInterfaceFunction
Method
VISIBLE
Returns subclass ids, if any exist
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.themroles
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#themroles
ZopeInterfaceFunction
Method
VISIBLE
Returns thematic roles participating in a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._index
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_index
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._index_helper
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_index_helper
ZopeInterfaceFunction
Method
PRIVATE
Helper for _index()
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._quick_index
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_quick_index
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.longid
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#longid
ZopeInterfaceFunction
Method
VISIBLE
Returns longid of a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.shortid
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#shortid
ZopeInterfaceFunction
Method
VISIBLE
Returns shortid of a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._get_semantics_within_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_get_semantics_within_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns semantics within a single frame
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._get_example_within_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_get_example_within_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns example within a frame
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._get_description_within_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_get_description_within_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns member description within frame
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._get_syntactic_list_within_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_get_syntactic_list_within_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns semantics within a frame
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.pprint
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#pprint
ZopeInterfaceFunction
Method
VISIBLE
Returns pretty printed version of a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.pprint_subclasses
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#pprint_subclasses
ZopeInterfaceFunction
Method
VISIBLE
Returns pretty printed version of subclasses of VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.pprint_members
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#pprint_members
ZopeInterfaceFunction
Method
VISIBLE
Returns pretty printed version of members in a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.pprint_themroles
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#pprint_themroles
ZopeInterfaceFunction
Method
VISIBLE
Returns pretty printed version of thematic roles in a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader.pprint_frames
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#pprint_frames
ZopeInterfaceFunction
Method
VISIBLE
Returns pretty version of all frames in a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._pprint_single_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_pprint_single_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns pretty printed version of a single frame in a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._pprint_example_within_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_pprint_example_within_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns pretty printed version of example within frame in a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._pprint_description_within_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_pprint_description_within_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns pretty printed version of a VerbNet frame description
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._pprint_syntax_within_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_pprint_syntax_within_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns pretty printed version of syntax within a frame in a VerbNet class
-
nltk.corpus.reader.verbnet.VerbnetCorpusReader._pprint_semantics_within_frame
nltk.corpus.reader.verbnet.VerbnetCorpusReader.html#_pprint_semantics_within_frame
ZopeInterfaceFunction
Method
PRIVATE
Returns a pretty printed version of semantics within frame in a VerbNet class
-
nltk.corpus.reader.bnc.BNCCorpusReader
nltk.corpus.reader.bnc.BNCCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Corpus reader for the XML version of the British National Corpus.
-
nltk.corpus.reader.bnc.BNCCorpusReader.__init__
nltk.corpus.reader.bnc.BNCCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bnc.BNCCorpusReader._lazy
nltk.corpus.reader.bnc.BNCCorpusReader.html#_lazy
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.bnc.BNCCorpusReader.words
nltk.corpus.reader.bnc.BNCCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.bnc.BNCCorpusReader.tagged_words
nltk.corpus.reader.bnc.BNCCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bnc.BNCCorpusReader.sents
nltk.corpus.reader.bnc.BNCCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bnc.BNCCorpusReader.tagged_sents
nltk.corpus.reader.bnc.BNCCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.bnc.BNCCorpusReader._views
nltk.corpus.reader.bnc.BNCCorpusReader.html#_views
ZopeInterfaceFunction
Method
PRIVATE
A helper function that instantiates BNCWordViews or the list of words/sentences.
-
nltk.corpus.reader.bnc.BNCCorpusReader._words
nltk.corpus.reader.bnc.BNCCorpusReader.html#_words
ZopeInterfaceFunction
Method
PRIVATE
Helper used to implement the view methods -- returns a list of words or a list of sentences, optionally tagged.
-
nltk.corpus.reader.bnc._all_xmlwords_in
nltk.corpus.reader.bnc.html#_all_xmlwords_in
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.corpus.reader.bnc.BNCSentence
nltk.corpus.reader.bnc.BNCSentence.html
ZopeInterfaceClass
Class
VISIBLE
A list of words, augmented by an attribute num used to record the sentence identifier (the n attribute from the XML).
-
nltk.corpus.reader.bnc.BNCSentence.__init__
nltk.corpus.reader.bnc.BNCSentence.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bnc.BNCSentence.num
nltk.corpus.reader.bnc.BNCSentence.html#num
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView
nltk.corpus.reader.bnc.BNCWordView.html
ZopeInterfaceClass
Class
VISIBLE
A stream backed corpus view specialized for use with the BNC corpus.
-
nltk.corpus.reader.bnc.BNCWordView.tags_to_ignore
nltk.corpus.reader.bnc.BNCWordView.html#tags_to_ignore
ZopeInterfaceAttribute
Class Variable
VISIBLE
-
nltk.corpus.reader.bnc.BNCWordView.__init__
nltk.corpus.reader.bnc.BNCWordView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bnc.BNCWordView._sent
nltk.corpus.reader.bnc.BNCWordView.html#_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView._tag
nltk.corpus.reader.bnc.BNCWordView.html#_tag
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView._strip_space
nltk.corpus.reader.bnc.BNCWordView.html#_strip_space
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView._stem
nltk.corpus.reader.bnc.BNCWordView.html#_stem
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView.title
nltk.corpus.reader.bnc.BNCWordView.html#title
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView.author
nltk.corpus.reader.bnc.BNCWordView.html#author
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView.editor
nltk.corpus.reader.bnc.BNCWordView.html#editor
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView.resps
nltk.corpus.reader.bnc.BNCWordView.html#resps
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView._tag_context
nltk.corpus.reader.bnc.BNCWordView.html#_tag_context
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.corpus.reader.bnc.BNCWordView.handle_header
nltk.corpus.reader.bnc.BNCWordView.html#handle_header
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView.handle_elt
nltk.corpus.reader.bnc.BNCWordView.html#handle_elt
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.bnc.BNCWordView.handle_word
nltk.corpus.reader.bnc.BNCWordView.html#handle_word
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.bnc.BNCWordView.handle_sent
nltk.corpus.reader.bnc.BNCWordView.html#handle_sent
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.__init__
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader._tagset
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#_tagset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.xml_posts
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#xml_posts
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.posts
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#posts
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.tagged_posts
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#tagged_posts
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.words
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Returns all of the words and punctuation symbols in the specified file that were in text nodes -- ie, tags are ignored. Like the xml() method, fileid can only specify one file.
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.tagged_words
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader._wrap_elt
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#_wrap_elt
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader._elt_to_words
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#_elt_to_words
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader._elt_to_tagged_words
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#_elt_to_tagged_words
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.nps_chat.NPSChatCorpusReader._simplify_username
nltk.corpus.reader.nps_chat.NPSChatCorpusReader.html#_simplify_username
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardTurn
nltk.corpus.reader.switchboard.SwitchboardTurn.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.switchboard.SwitchboardTurn.__init__
nltk.corpus.reader.switchboard.SwitchboardTurn.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardTurn.speaker
nltk.corpus.reader.switchboard.SwitchboardTurn.html#speaker
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardTurn.id
nltk.corpus.reader.switchboard.SwitchboardTurn.html#id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardTurn.__repr__
nltk.corpus.reader.switchboard.SwitchboardTurn.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._FILES
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_FILES
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.__init__
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._tagset
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_tagset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.words
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.tagged_words
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.turns
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#turns
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.tagged_turns
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#tagged_turns
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.discourses
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#discourses
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.tagged_discourses
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#tagged_discourses
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._discourses_block_reader
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_discourses_block_reader
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._tagged_discourses_block_reader
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_tagged_discourses_block_reader
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._turns_block_reader
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_turns_block_reader
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._tagged_turns_block_reader
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_tagged_turns_block_reader
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._words_block_reader
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_words_block_reader
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._tagged_words_block_reader
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_tagged_words_block_reader
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._UTTERANCE_RE
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_UTTERANCE_RE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._SEP
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_SEP
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.switchboard.SwitchboardCorpusReader._parse_utterance
nltk.corpus.reader.switchboard.SwitchboardCorpusReader.html#_parse_utterance
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusReader
nltk.corpus.reader.dependency.DependencyCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/7 method documented
-
nltk.corpus.reader.dependency.DependencyCorpusReader.__init__
nltk.corpus.reader.dependency.DependencyCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.dependency.DependencyCorpusReader.raw
nltk.corpus.reader.dependency.DependencyCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.dependency.DependencyCorpusReader.words
nltk.corpus.reader.dependency.DependencyCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusReader.tagged_words
nltk.corpus.reader.dependency.DependencyCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusReader.sents
nltk.corpus.reader.dependency.DependencyCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusReader.tagged_sents
nltk.corpus.reader.dependency.DependencyCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusReader.parsed_sents
nltk.corpus.reader.dependency.DependencyCorpusReader.html#parsed_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusView
nltk.corpus.reader.dependency.DependencyCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusView._DOCSTART
nltk.corpus.reader.dependency.DependencyCorpusView.html#_DOCSTART
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusView.__init__
nltk.corpus.reader.dependency.DependencyCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.dependency.DependencyCorpusView._tagged
nltk.corpus.reader.dependency.DependencyCorpusView.html#_tagged
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusView._dependencies
nltk.corpus.reader.dependency.DependencyCorpusView.html#_dependencies
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusView._group_by_sent
nltk.corpus.reader.dependency.DependencyCorpusView.html#_group_by_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusView._chunk_types
nltk.corpus.reader.dependency.DependencyCorpusView.html#_chunk_types
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.dependency.DependencyCorpusView.read_block
nltk.corpus.reader.dependency.DependencyCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.corpus.reader.nombank.NombankCorpusReader
nltk.corpus.reader.nombank.NombankCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.nombank.NombankCorpusReader.__init__
nltk.corpus.reader.nombank.NombankCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.nombank.NombankCorpusReader._fileids
nltk.corpus.reader.nombank.NombankCorpusReader.html#_fileids
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of the relative paths for the fileids that make up this corpus.
-
nltk.corpus.reader.nombank.NombankCorpusReader._nomfile
nltk.corpus.reader.nombank.NombankCorpusReader.html#_nomfile
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.nombank.NombankCorpusReader._nounsfile
nltk.corpus.reader.nombank.NombankCorpusReader.html#_nounsfile
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.nombank.NombankCorpusReader._parse_fileid_xform
nltk.corpus.reader.nombank.NombankCorpusReader.html#_parse_fileid_xform
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.nombank.NombankCorpusReader._parse_corpus
nltk.corpus.reader.nombank.NombankCorpusReader.html#_parse_corpus
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.nombank.NombankCorpusReader.raw
nltk.corpus.reader.nombank.NombankCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.nombank.NombankCorpusReader.instances
nltk.corpus.reader.nombank.NombankCorpusReader.html#instances
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.nombank.NombankCorpusReader.lines
nltk.corpus.reader.nombank.NombankCorpusReader.html#lines
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.nombank.NombankCorpusReader.roleset
nltk.corpus.reader.nombank.NombankCorpusReader.html#roleset
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.nombank.NombankCorpusReader.rolesets
nltk.corpus.reader.nombank.NombankCorpusReader.html#rolesets
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.nombank.NombankCorpusReader.nouns
nltk.corpus.reader.nombank.NombankCorpusReader.html#nouns
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.nombank.NombankCorpusReader._read_instance_block
nltk.corpus.reader.nombank.NombankCorpusReader.html#_read_instance_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.nombank.NombankInstance
nltk.corpus.reader.nombank.NombankInstance.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 property, 9/9 instance variables, 0/1 class variable, 0/4 method, 0/1 static method documented
-
nltk.corpus.reader.nombank.NombankInstance.__init__
nltk.corpus.reader.nombank.NombankInstance.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankInstance.fileid
nltk.corpus.reader.nombank.NombankInstance.html#fileid
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The name of the file containing the parse tree for this instance's sentence.
-
nltk.corpus.reader.nombank.NombankInstance.sentnum
nltk.corpus.reader.nombank.NombankInstance.html#sentnum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The sentence number of this sentence within fileid. Indexing starts from zero.
-
nltk.corpus.reader.nombank.NombankInstance.wordnum
nltk.corpus.reader.nombank.NombankInstance.html#wordnum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The word number of this instance's predicate within its containing sentence. Word numbers are indexed starting from zero, and include traces and other empty parse elements.
-
nltk.corpus.reader.nombank.NombankInstance.baseform
nltk.corpus.reader.nombank.NombankInstance.html#baseform
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The baseform of the predicate.
-
nltk.corpus.reader.nombank.NombankInstance.sensenumber
nltk.corpus.reader.nombank.NombankInstance.html#sensenumber
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The sense number of the predicate.
-
nltk.corpus.reader.nombank.NombankInstance.predicate
nltk.corpus.reader.nombank.NombankInstance.html#predicate
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A NombankTreePointer indicating the position of this instance's predicate within its containing sentence.
-
nltk.corpus.reader.nombank.NombankInstance.predid
nltk.corpus.reader.nombank.NombankInstance.html#predid
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Identifier of the predicate.
-
nltk.corpus.reader.nombank.NombankInstance.arguments
nltk.corpus.reader.nombank.NombankInstance.html#arguments
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.corpus.reader.nombank.NombankInstance.parse_corpus
nltk.corpus.reader.nombank.NombankInstance.html#parse_corpus
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A corpus reader for the parse trees corresponding to the instances in this nombank corpus.
-
nltk.corpus.reader.nombank.NombankInstance.roleset
nltk.corpus.reader.nombank.NombankInstance.html#roleset
ZopeInterfaceAttribute
Property
VISIBLE
The name of the roleset used by this instance's predicate. Use nombank.roleset() <NombankCorpusReader.roleset> to look up information about the roleset.
-
nltk.corpus.reader.nombank.NombankInstance.__repr__
nltk.corpus.reader.nombank.NombankInstance.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankInstance.__str__
nltk.corpus.reader.nombank.NombankInstance.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankInstance._get_tree
nltk.corpus.reader.nombank.NombankInstance.html#_get_tree
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.nombank.NombankInstance.tree
nltk.corpus.reader.nombank.NombankInstance.html#tree
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankInstance.parse
nltk.corpus.reader.nombank.NombankInstance.html#parse
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankPointer
nltk.corpus.reader.nombank.NombankPointer.html
ZopeInterfaceClass
Class
VISIBLE
A pointer used by nombank to identify one or more constituents in a parse tree. NombankPointer is an abstract base class with three concrete subclasses:
-
nltk.corpus.reader.nombank.NombankPointer.__init__
nltk.corpus.reader.nombank.NombankPointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankChainTreePointer
nltk.corpus.reader.nombank.NombankChainTreePointer.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 instance variable, 0/4 method documented
-
nltk.corpus.reader.nombank.NombankChainTreePointer.__init__
nltk.corpus.reader.nombank.NombankChainTreePointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankChainTreePointer.pieces
nltk.corpus.reader.nombank.NombankChainTreePointer.html#pieces
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A list of the pieces that make up this chain. Elements may be either NombankSplitTreePointer or NombankTreePointer pointers.
-
nltk.corpus.reader.nombank.NombankChainTreePointer.__str__
nltk.corpus.reader.nombank.NombankChainTreePointer.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankChainTreePointer.__repr__
nltk.corpus.reader.nombank.NombankChainTreePointer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankChainTreePointer.select
nltk.corpus.reader.nombank.NombankChainTreePointer.html#select
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankSplitTreePointer
nltk.corpus.reader.nombank.NombankSplitTreePointer.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 instance variable, 0/4 method documented
-
nltk.corpus.reader.nombank.NombankSplitTreePointer.__init__
nltk.corpus.reader.nombank.NombankSplitTreePointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankSplitTreePointer.pieces
nltk.corpus.reader.nombank.NombankSplitTreePointer.html#pieces
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A list of the pieces that make up this chain. Elements are all NombankTreePointer pointers.
-
nltk.corpus.reader.nombank.NombankSplitTreePointer.__str__
nltk.corpus.reader.nombank.NombankSplitTreePointer.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankSplitTreePointer.__repr__
nltk.corpus.reader.nombank.NombankSplitTreePointer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankSplitTreePointer.select
nltk.corpus.reader.nombank.NombankSplitTreePointer.html#select
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer
nltk.corpus.reader.nombank.NombankTreePointer.html
ZopeInterfaceClass
Class
VISIBLE
wordnum:height*wordnum:height*... wordnum:height,
-
nltk.corpus.reader.nombank.NombankTreePointer.__init__
nltk.corpus.reader.nombank.NombankTreePointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.wordnum
nltk.corpus.reader.nombank.NombankTreePointer.html#wordnum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.height
nltk.corpus.reader.nombank.NombankTreePointer.html#height
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.parse
nltk.corpus.reader.nombank.NombankTreePointer.html#parse
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.__str__
nltk.corpus.reader.nombank.NombankTreePointer.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.__repr__
nltk.corpus.reader.nombank.NombankTreePointer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.__eq__
nltk.corpus.reader.nombank.NombankTreePointer.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.__ne__
nltk.corpus.reader.nombank.NombankTreePointer.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.__lt__
nltk.corpus.reader.nombank.NombankTreePointer.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.select
nltk.corpus.reader.nombank.NombankTreePointer.html#select
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nombank.NombankTreePointer.treepos
nltk.corpus.reader.nombank.NombankTreePointer.html#treepos
ZopeInterfaceFunction
Method
VISIBLE
Convert this pointer to a standard 'tree position' pointer, given that it points to the given tree.
-
nltk.corpus.reader.ipipan._parse_args
nltk.corpus.reader.ipipan.html#_parse_args
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Corpus reader designed to work with corpus created by IPI PAN. See http://korpus.pl/en/ for more details about IPI PAN corpus.
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.__init__
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.raw
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.channels
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#channels
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.domains
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.categories
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#categories
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.fileids
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#fileids
ZopeInterfaceFunction
Method
VISIBLE
Return a list of file identifiers for the fileids that make up this corpus.
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.sents
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.paras
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.words
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.tagged_sents
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.tagged_paras
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader.tagged_words
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader._list_morph_files
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#_list_morph_files
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader._list_morph_files_by
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#_list_morph_files_by
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader._get_tag
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#_get_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader._map_category
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#_map_category
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusReader._view
nltk.corpus.reader.ipipan.IPIPANCorpusReader.html#_view
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView
nltk.corpus.reader.ipipan.IPIPANCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.WORDS_MODE
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#WORDS_MODE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.SENTS_MODE
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#SENTS_MODE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.PARAS_MODE
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#PARAS_MODE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.__init__
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.in_sentence
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#in_sentence
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.position
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#position
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.show_tags
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#show_tags
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.disamb_only
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#disamb_only
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.mode
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#mode
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.simplify_tags
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#simplify_tags
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.one_tag
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#one_tag
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.append_no_space
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#append_no_space
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.append_space
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#append_space
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.replace_xmlentities
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#replace_xmlentities
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView.read_block
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.corpus.reader.ipipan.IPIPANCorpusView._read_data
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#_read_data
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView._seek
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#_seek
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.ipipan.IPIPANCorpusView._append_space
nltk.corpus.reader.ipipan.IPIPANCorpusView.html#_append_space
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.PARA
nltk.corpus.reader.pl196x.html#PARA
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.SENT
nltk.corpus.reader.pl196x.html#SENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.TAGGEDWORD
nltk.corpus.reader.pl196x.html#TAGGEDWORD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.WORD
nltk.corpus.reader.pl196x.html#WORD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.TYPE
nltk.corpus.reader.pl196x.html#TYPE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.ANA
nltk.corpus.reader.pl196x.html#ANA
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.TEXTID
nltk.corpus.reader.pl196x.html#TEXTID
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.TEICorpusView
nltk.corpus.reader.pl196x.TEICorpusView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.TEICorpusView.__init__
nltk.corpus.reader.pl196x.TEICorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.pl196x.TEICorpusView._tagged
nltk.corpus.reader.pl196x.TEICorpusView.html#_tagged
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.TEICorpusView._textids
nltk.corpus.reader.pl196x.TEICorpusView.html#_textids
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.TEICorpusView._group_by_sent
nltk.corpus.reader.pl196x.TEICorpusView.html#_group_by_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.TEICorpusView._group_by_para
nltk.corpus.reader.pl196x.TEICorpusView.html#_group_by_para
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.TEICorpusView._pagesize
nltk.corpus.reader.pl196x.TEICorpusView.html#_pagesize
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.TEICorpusView.read_block
nltk.corpus.reader.pl196x.TEICorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.corpus.reader.pl196x.TEICorpusView._parse_tag
nltk.corpus.reader.pl196x.TEICorpusView.html#_parse_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 0/1 class variable, 1/14 method documented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.head_len
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#head_len
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.__init__
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize this mapping based on keyword arguments, as follows:
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader._textids
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#_textids
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader._init_textids
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#_init_textids
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader._f2t
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#_f2t
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader._t2f
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#_t2f
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader._add_textids
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#_add_textids
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader._resolve
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#_resolve
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.decode_tag
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#decode_tag
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.textids
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#textids
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.words
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Returns all of the words and punctuation symbols in the specified file that were in text nodes -- ie, tags are ignored. Like the xml() method, fileid can only specify one file.
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.sents
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.paras
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.tagged_words
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.tagged_sents
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.tagged_paras
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.xml
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#xml
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.pl196x.Pl196xCorpusReader.raw
nltk.corpus.reader.pl196x.Pl196xCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.knbc._morphs2str_default
nltk.corpus.reader.knbc.html#_morphs2str_default
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.knbc.KNBCorpusReader
nltk.corpus.reader.knbc.KNBCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.knbc.KNBCorpusReader.__init__
nltk.corpus.reader.knbc.KNBCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize KNBCorpusReader morphs2str is a function to convert morphlist to str for tree representation for _parse()
-
nltk.corpus.reader.knbc.KNBCorpusReader.morphs2str
nltk.corpus.reader.knbc.KNBCorpusReader.html#morphs2str
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.knbc.KNBCorpusReader._read_block
nltk.corpus.reader.knbc.KNBCorpusReader.html#_read_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.knbc.KNBCorpusReader._word
nltk.corpus.reader.knbc.KNBCorpusReader.html#_word
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.knbc.KNBCorpusReader._tag
nltk.corpus.reader.knbc.KNBCorpusReader.html#_tag
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.knbc.KNBCorpusReader._parse
nltk.corpus.reader.knbc.KNBCorpusReader.html#_parse
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.knbc.demo
nltk.corpus.reader.knbc.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.knbc.test
nltk.corpus.reader.knbc.html#test
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader
nltk.corpus.reader.chasen.ChasenCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader.__init__
nltk.corpus.reader.chasen.ChasenCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.chasen.ChasenCorpusReader._sent_splitter
nltk.corpus.reader.chasen.ChasenCorpusReader.html#_sent_splitter
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader.raw
nltk.corpus.reader.chasen.ChasenCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader.words
nltk.corpus.reader.chasen.ChasenCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader.tagged_words
nltk.corpus.reader.chasen.ChasenCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader.sents
nltk.corpus.reader.chasen.ChasenCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader.tagged_sents
nltk.corpus.reader.chasen.ChasenCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader.paras
nltk.corpus.reader.chasen.ChasenCorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusReader.tagged_paras
nltk.corpus.reader.chasen.ChasenCorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusView
nltk.corpus.reader.chasen.ChasenCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
A specialized corpus view for ChasenReader. Similar to TaggedCorpusView, but this'll use fixed sets of word and sentence tokenizer.
-
nltk.corpus.reader.chasen.ChasenCorpusView.__init__
nltk.corpus.reader.chasen.ChasenCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.chasen.ChasenCorpusView._tagged
nltk.corpus.reader.chasen.ChasenCorpusView.html#_tagged
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusView._group_by_sent
nltk.corpus.reader.chasen.ChasenCorpusView.html#_group_by_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusView._group_by_para
nltk.corpus.reader.chasen.ChasenCorpusView.html#_group_by_para
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusView._sent_splitter
nltk.corpus.reader.chasen.ChasenCorpusView.html#_sent_splitter
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.chasen.ChasenCorpusView.read_block
nltk.corpus.reader.chasen.ChasenCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Reads one paragraph at a time.
-
nltk.corpus.reader.chasen.demo
nltk.corpus.reader.chasen.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.chasen.test
nltk.corpus.reader.chasen.html#test
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.childes.NS
nltk.corpus.reader.childes.html#NS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.childes.CHILDESCorpusReader
nltk.corpus.reader.childes.CHILDESCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.childes.CHILDESCorpusReader.__init__
nltk.corpus.reader.childes.CHILDESCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.childes.CHILDESCorpusReader._lazy
nltk.corpus.reader.childes.CHILDESCorpusReader.html#_lazy
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.childes.CHILDESCorpusReader.words
nltk.corpus.reader.childes.CHILDESCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a list of words :rtype: list(str)
-
nltk.corpus.reader.childes.CHILDESCorpusReader.tagged_words
nltk.corpus.reader.childes.CHILDESCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.childes.CHILDESCorpusReader.sents
nltk.corpus.reader.childes.CHILDESCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a list of sentences or utterances, each encoded as a list of word strings. :rtype: list(list(str))
-
nltk.corpus.reader.childes.CHILDESCorpusReader.tagged_sents
nltk.corpus.reader.childes.CHILDESCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a list of sentences, each encoded as a list of ``(word,tag)`` tuples. :rtype: list(list(tuple(str,str)))
-
nltk.corpus.reader.childes.CHILDESCorpusReader.corpus
nltk.corpus.reader.childes.CHILDESCorpusReader.html#corpus
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a dict of ``(corpus_property_key, value)`` :rtype: list(dict)
-
nltk.corpus.reader.childes.CHILDESCorpusReader._get_corpus
nltk.corpus.reader.childes.CHILDESCorpusReader.html#_get_corpus
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.childes.CHILDESCorpusReader.participants
nltk.corpus.reader.childes.CHILDESCorpusReader.html#participants
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a dict of ``(participant_property_key, value)`` :rtype: list(dict)
-
nltk.corpus.reader.childes.CHILDESCorpusReader._get_participants
nltk.corpus.reader.childes.CHILDESCorpusReader.html#_get_participants
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.childes.CHILDESCorpusReader.age
nltk.corpus.reader.childes.CHILDESCorpusReader.html#age
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as string or int :rtype: list or int
-
nltk.corpus.reader.childes.CHILDESCorpusReader._get_age
nltk.corpus.reader.childes.CHILDESCorpusReader.html#_get_age
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.childes.CHILDESCorpusReader.convert_age
nltk.corpus.reader.childes.CHILDESCorpusReader.html#convert_age
ZopeInterfaceFunction
Method
VISIBLE
Caclculate age in months from a string in CHILDES format
-
nltk.corpus.reader.childes.CHILDESCorpusReader.MLU
nltk.corpus.reader.childes.CHILDESCorpusReader.html#MLU
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a floating number :rtype: list(float)
-
nltk.corpus.reader.childes.CHILDESCorpusReader._getMLU
nltk.corpus.reader.childes.CHILDESCorpusReader.html#_getMLU
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.childes.CHILDESCorpusReader._get_words
nltk.corpus.reader.childes.CHILDESCorpusReader.html#_get_words
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.childes.CHILDESCorpusReader.childes_url_base
nltk.corpus.reader.childes.CHILDESCorpusReader.html#childes_url_base
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.childes.CHILDESCorpusReader.webview_file
nltk.corpus.reader.childes.CHILDESCorpusReader.html#webview_file
ZopeInterfaceFunction
Method
VISIBLE
Map a corpus file to its web version on the CHILDES website, and open it in a web browser.
-
nltk.corpus.reader.childes.demo
nltk.corpus.reader.childes.html#demo
ZopeInterfaceFunction
Function
VISIBLE
The CHILDES corpus should be manually downloaded and saved to ``[NLTK_Data_Dir]/corpora/childes/``
-
nltk.corpus.reader.aligned.AlignedCorpusReader
nltk.corpus.reader.aligned.AlignedCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for corpora of word-aligned sentences. Tokens are assumed to be separated by whitespace. Sentences begin on separate lines.
-
nltk.corpus.reader.aligned.AlignedCorpusReader.__init__
nltk.corpus.reader.aligned.AlignedCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Aligned Corpus reader for a set of documents located at the given root directory. Example usage:
-
nltk.corpus.reader.aligned.AlignedCorpusReader._sep
nltk.corpus.reader.aligned.AlignedCorpusReader.html#_sep
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedCorpusReader._word_tokenizer
nltk.corpus.reader.aligned.AlignedCorpusReader.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedCorpusReader._sent_tokenizer
nltk.corpus.reader.aligned.AlignedCorpusReader.html#_sent_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedCorpusReader._alignedsent_block_reader
nltk.corpus.reader.aligned.AlignedCorpusReader.html#_alignedsent_block_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedCorpusReader.raw
nltk.corpus.reader.aligned.AlignedCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.aligned.AlignedCorpusReader.words
nltk.corpus.reader.aligned.AlignedCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.aligned.AlignedCorpusReader.sents
nltk.corpus.reader.aligned.AlignedCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.aligned.AlignedCorpusReader.aligned_sents
nltk.corpus.reader.aligned.AlignedCorpusReader.html#aligned_sents
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.aligned.AlignedSentCorpusView
nltk.corpus.reader.aligned.AlignedSentCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
A specialized corpus view for aligned sentences. AlignedSentCorpusView objects are typically created by AlignedCorpusReader (not directly by nltk users).
-
nltk.corpus.reader.aligned.AlignedSentCorpusView.__init__
nltk.corpus.reader.aligned.AlignedSentCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.aligned.AlignedSentCorpusView._aligned
nltk.corpus.reader.aligned.AlignedSentCorpusView.html#_aligned
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedSentCorpusView._group_by_sent
nltk.corpus.reader.aligned.AlignedSentCorpusView.html#_group_by_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedSentCorpusView._word_tokenizer
nltk.corpus.reader.aligned.AlignedSentCorpusView.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedSentCorpusView._sent_tokenizer
nltk.corpus.reader.aligned.AlignedSentCorpusView.html#_sent_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedSentCorpusView._alignedsent_block_reader
nltk.corpus.reader.aligned.AlignedSentCorpusView.html#_alignedsent_block_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.aligned.AlignedSentCorpusView.read_block
nltk.corpus.reader.aligned.AlignedSentCorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read a block from the input stream.
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Wrapper for the LISP-formatted thesauruses distributed by Dekang Lin.
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader._key_re
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#_key_re
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader.__defaultdict_factory
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#__defaultdict_factory
ZopeInterfaceFunction
Static Method
PRIVATE
Factory for creating defaultdict of defaultdict(dict)s
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader.__init__
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize the thesaurus.
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader._thesaurus
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#_thesaurus
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader._badscore
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#_badscore
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader.similarity
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#similarity
ZopeInterfaceFunction
Method
VISIBLE
Returns the similarity score for two ngrams.
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader.scored_synonyms
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#scored_synonyms
ZopeInterfaceFunction
Method
VISIBLE
Returns a list of scored synonyms (tuples of synonyms and scores) for the current ngram
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader.synonyms
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#synonyms
ZopeInterfaceFunction
Method
VISIBLE
Returns a list of synonyms for the current ngram.
-
nltk.corpus.reader.lin.LinThesaurusCorpusReader.__contains__
nltk.corpus.reader.lin.LinThesaurusCorpusReader.html#__contains__
ZopeInterfaceFunction
Method
VISIBLE
Determines whether or not the given ngram is in the thesaurus.
-
nltk.corpus.reader.lin.demo
nltk.corpus.reader.lin.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.semcor.SemcorCorpusReader
nltk.corpus.reader.semcor.SemcorCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.semcor.SemcorCorpusReader.__init__
nltk.corpus.reader.semcor.SemcorCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.semcor.SemcorCorpusReader._lazy
nltk.corpus.reader.semcor.SemcorCorpusReader.html#_lazy
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorCorpusReader._wordnet
nltk.corpus.reader.semcor.SemcorCorpusReader.html#_wordnet
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorCorpusReader.words
nltk.corpus.reader.semcor.SemcorCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a list of words and punctuation symbols. :rtype: list(str)
-
nltk.corpus.reader.semcor.SemcorCorpusReader.chunks
nltk.corpus.reader.semcor.SemcorCorpusReader.html#chunks
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.semcor.SemcorCorpusReader.tagged_chunks
nltk.corpus.reader.semcor.SemcorCorpusReader.html#tagged_chunks
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a list of tagged chunks, represented in tree form. :rtype: list(Tree)
-
nltk.corpus.reader.semcor.SemcorCorpusReader.sents
nltk.corpus.reader.semcor.SemcorCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a list of sentences, each encoded as a list of word strings. :rtype: list(list(str))
-
nltk.corpus.reader.semcor.SemcorCorpusReader.chunk_sents
nltk.corpus.reader.semcor.SemcorCorpusReader.html#chunk_sents
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a list of sentences, each encoded as a list of chunks. :rtype: list(list(list(str)))
-
nltk.corpus.reader.semcor.SemcorCorpusReader.tagged_sents
nltk.corpus.reader.semcor.SemcorCorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
:return: the given file(s) as a list of sentences. Each sentence is represented as a list of tagged chunks (in tree form). :rtype: list(list(Tree))
-
nltk.corpus.reader.semcor.SemcorCorpusReader._items
nltk.corpus.reader.semcor.SemcorCorpusReader.html#_items
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorCorpusReader._words
nltk.corpus.reader.semcor.SemcorCorpusReader.html#_words
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.corpus.reader.semcor.SemcorCorpusReader._word
nltk.corpus.reader.semcor.SemcorCorpusReader.html#_word
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor._all_xmlwords_in
nltk.corpus.reader.semcor.html#_all_xmlwords_in
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorSentence
nltk.corpus.reader.semcor.SemcorSentence.html
ZopeInterfaceClass
Class
VISIBLE
A list of words, augmented by an attribute ``num`` used to record the sentence identifier (the ``n`` attribute from the XML).
-
nltk.corpus.reader.semcor.SemcorSentence.__init__
nltk.corpus.reader.semcor.SemcorSentence.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.semcor.SemcorSentence.num
nltk.corpus.reader.semcor.SemcorSentence.html#num
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.semcor.SemcorWordView
nltk.corpus.reader.semcor.SemcorWordView.html
ZopeInterfaceClass
Class
VISIBLE
A stream backed corpus view specialized for use with the BNC corpus.
-
nltk.corpus.reader.semcor.SemcorWordView.__init__
nltk.corpus.reader.semcor.SemcorWordView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.semcor.SemcorWordView._unit
nltk.corpus.reader.semcor.SemcorWordView.html#_unit
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorWordView._sent
nltk.corpus.reader.semcor.SemcorWordView.html#_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorWordView._pos_tag
nltk.corpus.reader.semcor.SemcorWordView.html#_pos_tag
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorWordView._sem_tag
nltk.corpus.reader.semcor.SemcorWordView.html#_sem_tag
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorWordView._wordnet
nltk.corpus.reader.semcor.SemcorWordView.html#_wordnet
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.semcor.SemcorWordView.handle_elt
nltk.corpus.reader.semcor.SemcorWordView.html#handle_elt
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.semcor.SemcorWordView.handle_word
nltk.corpus.reader.semcor.SemcorWordView.html#handle_word
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.semcor.SemcorWordView.handle_sent
nltk.corpus.reader.semcor.SemcorWordView.html#handle_sent
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.mimic_wrap
nltk.corpus.reader.framenet.html#mimic_wrap
ZopeInterfaceFunction
Function
VISIBLE
Wrap the first of 'lines' with textwrap and the remaining lines at exactly the same positions as the first.
-
nltk.corpus.reader.framenet._pretty_longstring
nltk.corpus.reader.framenet.html#_pretty_longstring
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a long string.
-
nltk.corpus.reader.framenet._pretty_any
nltk.corpus.reader.framenet.html#_pretty_any
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing any AttrDict object.
-
nltk.corpus.reader.framenet._pretty_semtype
nltk.corpus.reader.framenet.html#_pretty_semtype
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a semantic type.
-
nltk.corpus.reader.framenet._pretty_frame_relation_type
nltk.corpus.reader.framenet.html#_pretty_frame_relation_type
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a frame relation type.
-
nltk.corpus.reader.framenet._pretty_frame_relation
nltk.corpus.reader.framenet.html#_pretty_frame_relation
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a frame relation.
-
nltk.corpus.reader.framenet._pretty_fe_relation
nltk.corpus.reader.framenet.html#_pretty_fe_relation
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing an FE relation.
-
nltk.corpus.reader.framenet._pretty_lu
nltk.corpus.reader.framenet.html#_pretty_lu
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a lexical unit.
-
nltk.corpus.reader.framenet._pretty_exemplars
nltk.corpus.reader.framenet.html#_pretty_exemplars
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a list of exemplar sentences for a lexical unit.
-
nltk.corpus.reader.framenet._pretty_fulltext_sentences
nltk.corpus.reader.framenet.html#_pretty_fulltext_sentences
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a list of annotated sentences for a full-text document.
-
nltk.corpus.reader.framenet._pretty_fulltext_sentence
nltk.corpus.reader.framenet.html#_pretty_fulltext_sentence
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing an annotated sentence from a full-text document.
-
nltk.corpus.reader.framenet._pretty_pos
nltk.corpus.reader.framenet.html#_pretty_pos
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a sentence with its POS tags.
-
nltk.corpus.reader.framenet._pretty_annotation
nltk.corpus.reader.framenet.html#_pretty_annotation
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing an exemplar sentence for a lexical unit.
-
nltk.corpus.reader.framenet._annotation_ascii
nltk.corpus.reader.framenet.html#_annotation_ascii
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.corpus.reader.framenet._annotation_ascii_frames
nltk.corpus.reader.framenet.html#_annotation_ascii_frames
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.corpus.reader.framenet._annotation_ascii_FE_layer
nltk.corpus.reader.framenet.html#_annotation_ascii_FE_layer
ZopeInterfaceFunction
Function
PRIVATE
Helper for _annotation_ascii_FEs().
-
nltk.corpus.reader.framenet._annotation_ascii_FEs
nltk.corpus.reader.framenet.html#_annotation_ascii_FEs
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.corpus.reader.framenet._pretty_fe
nltk.corpus.reader.framenet.html#_pretty_fe
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a frame element.
-
nltk.corpus.reader.framenet._pretty_frame
nltk.corpus.reader.framenet.html#_pretty_frame
ZopeInterfaceFunction
Function
PRIVATE
Helper function for pretty-printing a frame.
-
nltk.corpus.reader.framenet.FramenetError
nltk.corpus.reader.framenet.FramenetError.html
ZopeInterfaceClass
Class
VISIBLE
An exception class for framenet-related errors.
-
nltk.corpus.reader.framenet.AttrDict
nltk.corpus.reader.framenet.AttrDict.html
ZopeInterfaceClass
Class
VISIBLE
A class that wraps a dict and allows accessing the keys of the dict as if they were attributes. Taken from here: http://stackoverflow.com/a/14620633/8879
-
nltk.corpus.reader.framenet.AttrDict.__init__
nltk.corpus.reader.framenet.AttrDict.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.AttrDict.__setattr__
nltk.corpus.reader.framenet.AttrDict.html#__setattr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.AttrDict.__getattr__
nltk.corpus.reader.framenet.AttrDict.html#__getattr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.AttrDict.__getitem__
nltk.corpus.reader.framenet.AttrDict.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.AttrDict._short_repr
nltk.corpus.reader.framenet.AttrDict.html#_short_repr
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.AttrDict._str
nltk.corpus.reader.framenet.AttrDict.html#_str
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.AttrDict.__str__
nltk.corpus.reader.framenet.AttrDict.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.AttrDict.__repr__
nltk.corpus.reader.framenet.AttrDict.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.SpecialList
nltk.corpus.reader.framenet.SpecialList.html
ZopeInterfaceClass
Class
VISIBLE
A list subclass which adds a '_type' attribute for special printing (similar to an AttrDict, though this is NOT an AttrDict subclass).
-
nltk.corpus.reader.framenet.SpecialList.__init__
nltk.corpus.reader.framenet.SpecialList.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.SpecialList._type
nltk.corpus.reader.framenet.SpecialList.html#_type
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.SpecialList._str
nltk.corpus.reader.framenet.SpecialList.html#_str
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.SpecialList.__str__
nltk.corpus.reader.framenet.SpecialList.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.SpecialList.__repr__
nltk.corpus.reader.framenet.SpecialList.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.Future
nltk.corpus.reader.framenet.Future.html
ZopeInterfaceClass
Class
VISIBLE
Wraps and acts as a proxy for a value to be loaded lazily (on demand). Adapted from https://gist.github.com/sergey-miryanov/2935416
-
nltk.corpus.reader.framenet.Future.__init__
nltk.corpus.reader.framenet.Future.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
:param loader: when called with no arguments, returns the value to be stored :type loader: callable
-
nltk.corpus.reader.framenet.Future._loader
nltk.corpus.reader.framenet.Future.html#_loader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.Future._d
nltk.corpus.reader.framenet.Future.html#_d
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.Future._data
nltk.corpus.reader.framenet.Future.html#_data
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.Future.__nonzero__
nltk.corpus.reader.framenet.Future.html#__nonzero__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.Future.__len__
nltk.corpus.reader.framenet.Future.html#__len__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.Future.__setitem__
nltk.corpus.reader.framenet.Future.html#__setitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.Future.__getitem__
nltk.corpus.reader.framenet.Future.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.Future.__getattr__
nltk.corpus.reader.framenet.Future.html#__getattr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.Future.__str__
nltk.corpus.reader.framenet.Future.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.Future.__repr__
nltk.corpus.reader.framenet.Future.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.PrettyDict
nltk.corpus.reader.framenet.PrettyDict.html
ZopeInterfaceClass
Class
VISIBLE
Displays an abbreviated repr of values where possible. Inherits from AttrDict, so a callable value will be lazily converted to an actual value.
-
nltk.corpus.reader.framenet.PrettyDict.__init__
nltk.corpus.reader.framenet.PrettyDict.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.PrettyDict.__repr__
nltk.corpus.reader.framenet.PrettyDict.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.PrettyList
nltk.corpus.reader.framenet.PrettyList.html
ZopeInterfaceClass
Class
VISIBLE
Displays an abbreviated repr of only the first several elements, not the whole list.
-
nltk.corpus.reader.framenet.PrettyList.__init__
nltk.corpus.reader.framenet.PrettyList.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.PrettyList._MAX_REPR_SIZE
nltk.corpus.reader.framenet.PrettyList.html#_MAX_REPR_SIZE
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.PrettyList._BREAK_LINES
nltk.corpus.reader.framenet.PrettyList.html#_BREAK_LINES
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.PrettyList.__repr__
nltk.corpus.reader.framenet.PrettyList.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation for this corpus view that is similar to a list's representation; but if it would be more than 60 characters long, it is truncated.
-
nltk.corpus.reader.framenet.PrettyLazyMap
nltk.corpus.reader.framenet.PrettyLazyMap.html
ZopeInterfaceClass
Class
VISIBLE
Displays an abbreviated repr of only the first several elements, not the whole list.
-
nltk.corpus.reader.framenet.PrettyLazyMap._MAX_REPR_SIZE
nltk.corpus.reader.framenet.PrettyLazyMap.html#_MAX_REPR_SIZE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.PrettyLazyMap.__repr__
nltk.corpus.reader.framenet.PrettyLazyMap.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation for this corpus view that is similar to a list's representation; but if it would be more than 60 characters long, it is truncated.
-
nltk.corpus.reader.framenet.PrettyLazyIteratorList
nltk.corpus.reader.framenet.PrettyLazyIteratorList.html
ZopeInterfaceClass
Class
VISIBLE
Displays an abbreviated repr of only the first several elements, not the whole list.
-
nltk.corpus.reader.framenet.PrettyLazyIteratorList._MAX_REPR_SIZE
nltk.corpus.reader.framenet.PrettyLazyIteratorList.html#_MAX_REPR_SIZE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.PrettyLazyIteratorList.__repr__
nltk.corpus.reader.framenet.PrettyLazyIteratorList.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation for this corpus view that is similar to a list's representation; but if it would be more than 60 characters long, it is truncated.
-
nltk.corpus.reader.framenet.PrettyLazyConcatenation
nltk.corpus.reader.framenet.PrettyLazyConcatenation.html
ZopeInterfaceClass
Class
VISIBLE
Displays an abbreviated repr of only the first several elements, not the whole list.
-
nltk.corpus.reader.framenet.PrettyLazyConcatenation._MAX_REPR_SIZE
nltk.corpus.reader.framenet.PrettyLazyConcatenation.html#_MAX_REPR_SIZE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.PrettyLazyConcatenation.__repr__
nltk.corpus.reader.framenet.PrettyLazyConcatenation.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Return a string representation for this corpus view that is similar to a list's representation; but if it would be more than 60 characters long, it is truncated.
-
nltk.corpus.reader.framenet.PrettyLazyConcatenation.__add__
nltk.corpus.reader.framenet.PrettyLazyConcatenation.html#__add__
ZopeInterfaceFunction
Method
VISIBLE
Return a list concatenating self with other.
-
nltk.corpus.reader.framenet.PrettyLazyConcatenation.__radd__
nltk.corpus.reader.framenet.PrettyLazyConcatenation.html#__radd__
ZopeInterfaceFunction
Method
VISIBLE
Return a list concatenating other with self.
-
nltk.corpus.reader.framenet.FramenetCorpusReader
nltk.corpus.reader.framenet.FramenetCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A corpus reader for the Framenet Corpus.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._bad_statuses
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_bad_statuses
ZopeInterfaceAttribute
Class Variable
PRIVATE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader._warnings
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_warnings
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader.warnings
nltk.corpus.reader.framenet.FramenetCorpusReader.html#warnings
ZopeInterfaceFunction
Method
VISIBLE
Enable or disable warnings of data integrity issues as they are encountered. If v is truthy, warnings will be enabled.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.__init__
nltk.corpus.reader.framenet.FramenetCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._frame_dir
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_frame_dir
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._lu_dir
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_lu_dir
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._fulltext_dir
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_fulltext_dir
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._fnweb_url
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_fnweb_url
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._frame_idx
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_frame_idx
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._cached_frames
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_cached_frames
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._lu_idx
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_lu_idx
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._fulltext_idx
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_fulltext_idx
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._semtypes
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_semtypes
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._freltyp_idx
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_freltyp_idx
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._frel_idx
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_frel_idx
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._ferel_idx
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_ferel_idx
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._frel_f_idx
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_frel_f_idx
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader.help
nltk.corpus.reader.framenet.FramenetCorpusReader.html#help
ZopeInterfaceFunction
Method
VISIBLE
Display help information summarizing the main methods.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._buildframeindex
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_buildframeindex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._buildcorpusindex
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_buildcorpusindex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._buildluindex
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_buildluindex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._buildrelationindex
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_buildrelationindex
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._warn
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_warn
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader.readme
nltk.corpus.reader.framenet.FramenetCorpusReader.html#readme
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus README.txt (or README) file.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.buildindexes
nltk.corpus.reader.framenet.FramenetCorpusReader.html#buildindexes
ZopeInterfaceFunction
Method
VISIBLE
Build the internal indexes to make look-ups faster.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.doc
nltk.corpus.reader.framenet.FramenetCorpusReader.html#doc
ZopeInterfaceFunction
Method
VISIBLE
Returns the annotated document whose id number is ``fn_docid``. This id number can be obtained by calling the Documents() function.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.frame_by_id
nltk.corpus.reader.framenet.FramenetCorpusReader.html#frame_by_id
ZopeInterfaceFunction
Method
VISIBLE
Get the details for the specified Frame using the frame's id number.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.frame_by_name
nltk.corpus.reader.framenet.FramenetCorpusReader.html#frame_by_name
ZopeInterfaceFunction
Method
VISIBLE
Get the details for the specified Frame using the frame's name.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.frame
nltk.corpus.reader.framenet.FramenetCorpusReader.html#frame
ZopeInterfaceFunction
Method
VISIBLE
Get the details for the specified Frame using the frame's name or id number.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.frames_by_lemma
nltk.corpus.reader.framenet.FramenetCorpusReader.html#frames_by_lemma
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader.lu_basic
nltk.corpus.reader.framenet.FramenetCorpusReader.html#lu_basic
ZopeInterfaceFunction
Method
VISIBLE
Returns basic information about the LU whose id is ``fn_luid``. This is basically just a wrapper around the ``lu()`` function with "subCorpus" info excluded.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.lu
nltk.corpus.reader.framenet.FramenetCorpusReader.html#lu
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader._lu_file
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_lu_file
ZopeInterfaceFunction
Method
PRIVATE
Augment the LU information that was loaded from the frame file with additional information from the LU file.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._loadsemtypes
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_loadsemtypes
ZopeInterfaceFunction
Method
PRIVATE
Create the semantic types index.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.propagate_semtypes
nltk.corpus.reader.framenet.FramenetCorpusReader.html#propagate_semtypes
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader.semtype
nltk.corpus.reader.framenet.FramenetCorpusReader.html#semtype
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader.semtype_inherits
nltk.corpus.reader.framenet.FramenetCorpusReader.html#semtype_inherits
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader.frames
nltk.corpus.reader.framenet.FramenetCorpusReader.html#frames
ZopeInterfaceFunction
Method
VISIBLE
Obtain details for a specific frame.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.frame_ids_and_names
nltk.corpus.reader.framenet.FramenetCorpusReader.html#frame_ids_and_names
ZopeInterfaceFunction
Method
VISIBLE
Uses the frame index, which is much faster than looking up each frame definition if only the names and IDs are needed.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.fes
nltk.corpus.reader.framenet.FramenetCorpusReader.html#fes
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader.lus
nltk.corpus.reader.framenet.FramenetCorpusReader.html#lus
ZopeInterfaceFunction
Method
VISIBLE
Obtain details for lexical units. Optionally restrict by lexical unit name pattern, and/or to a certain frame or frames whose name matches a pattern.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.lu_ids_and_names
nltk.corpus.reader.framenet.FramenetCorpusReader.html#lu_ids_and_names
ZopeInterfaceFunction
Method
VISIBLE
Uses the LU index, which is much faster than looking up each LU definition if only the names and IDs are needed.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.docs_metadata
nltk.corpus.reader.framenet.FramenetCorpusReader.html#docs_metadata
ZopeInterfaceFunction
Method
VISIBLE
Return an index of the annotated documents in Framenet.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.docs
nltk.corpus.reader.framenet.FramenetCorpusReader.html#docs
ZopeInterfaceFunction
Method
VISIBLE
Return a list of the annotated full-text documents in FrameNet, optionally filtered by a regex to be matched against the document name.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.sents
nltk.corpus.reader.framenet.FramenetCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Annotated sentences matching the specified criteria.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.annotations
nltk.corpus.reader.framenet.FramenetCorpusReader.html#annotations
ZopeInterfaceFunction
Method
VISIBLE
Frame annotation sets matching the specified criteria.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.exemplars
nltk.corpus.reader.framenet.FramenetCorpusReader.html#exemplars
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader._exemplar_of_fes
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_exemplar_of_fes
ZopeInterfaceFunction
Method
PRIVATE
Given an exemplar sentence and a set of FE names, return the subset of FE names that are realized overtly in the sentence on the FE, FE2, or FE3 layer.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.ft_sents
nltk.corpus.reader.framenet.FramenetCorpusReader.html#ft_sents
ZopeInterfaceFunction
Method
VISIBLE
Full-text annotation sentences, optionally filtered by document name.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.frame_relation_types
nltk.corpus.reader.framenet.FramenetCorpusReader.html#frame_relation_types
ZopeInterfaceFunction
Method
VISIBLE
Obtain a list of frame relation types.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.frame_relations
nltk.corpus.reader.framenet.FramenetCorpusReader.html#frame_relations
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader.fe_relations
nltk.corpus.reader.framenet.FramenetCorpusReader.html#fe_relations
ZopeInterfaceFunction
Method
VISIBLE
Obtain a list of frame element relations.
-
nltk.corpus.reader.framenet.FramenetCorpusReader.semtypes
nltk.corpus.reader.framenet.FramenetCorpusReader.html#semtypes
ZopeInterfaceFunction
Method
VISIBLE
Obtain a list of semantic types.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._load_xml_attributes
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_load_xml_attributes
ZopeInterfaceFunction
Method
PRIVATE
Extracts a subset of the attributes from the given element and returns them in a dictionary.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._strip_tags
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_strip_tags
ZopeInterfaceFunction
Method
PRIVATE
Gets rid of all tags and newline characters from the given input
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_elt
ZopeInterfaceFunction
Method
PRIVATE
Extracts and returns the attributes of the given element
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_fulltextindex_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_fulltextindex_elt
ZopeInterfaceFunction
Method
PRIVATE
Extracts corpus/document info from the fulltextIndex.xml file.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_frame_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_frame_elt
ZopeInterfaceFunction
Method
PRIVATE
Load the info for a Frame from a frame xml file
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_fecoreset_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_fecoreset_elt
ZopeInterfaceFunction
Method
PRIVATE
Load fe coreset info from xml.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_framerelationtype_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_framerelationtype_elt
ZopeInterfaceFunction
Method
PRIVATE
Load frame-relation element and its child fe-relation elements from frRelation.xml.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_framerelation_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_framerelation_elt
ZopeInterfaceFunction
Method
PRIVATE
Load frame-relation element and its child fe-relation elements from frRelation.xml.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_fulltextannotation_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_fulltextannotation_elt
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_fulltext_sentence_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_fulltext_sentence_elt
ZopeInterfaceFunction
Method
PRIVATE
Load information from the given 'sentence' element. Each 'sentence' element contains a "text" and "annotationSet" sub elements.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_fulltextannotationset_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_fulltextannotationset_elt
ZopeInterfaceFunction
Method
PRIVATE
Load information from the given 'annotationSet' element. Each 'annotationSet' contains several "layer" elements.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_fulltextlayer_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_fulltextlayer_elt
ZopeInterfaceFunction
Method
PRIVATE
Load information from the given 'layer' element. Each 'layer' contains several "label" elements.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_framelexunit_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_framelexunit_elt
ZopeInterfaceFunction
Method
PRIVATE
Load the lexical unit info from an xml element in a frame's xml file.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_lexunit_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_lexunit_elt
ZopeInterfaceFunction
Method
PRIVATE
Load full info for a lexical unit from its xml file. This should only be called when accessing corpus annotations (which are not included in frame files).
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_lusubcorpus_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_lusubcorpus_elt
ZopeInterfaceFunction
Method
PRIVATE
Load a subcorpus of a lexical unit from the given xml.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_lusentence_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_lusentence_elt
ZopeInterfaceFunction
Method
PRIVATE
Load a sentence from a subcorpus of an LU from xml.
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_luannotationset_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_luannotationset_elt
ZopeInterfaceFunction
Method
PRIVATE
Load an annotation set from a sentence in an subcorpus of an LU
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_lulayer_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_lulayer_elt
ZopeInterfaceFunction
Method
PRIVATE
Load a layer from an annotation set
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_fe_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_fe_elt
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.FramenetCorpusReader._handle_semtype_elt
nltk.corpus.reader.framenet.FramenetCorpusReader.html#_handle_semtype_elt
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.framenet.demo
nltk.corpus.reader.framenet.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.udhr.UdhrCorpusReader
nltk.corpus.reader.udhr.UdhrCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.corpus.reader.udhr.UdhrCorpusReader.ENCODINGS
nltk.corpus.reader.udhr.UdhrCorpusReader.html#ENCODINGS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.udhr.UdhrCorpusReader.SKIP
nltk.corpus.reader.udhr.UdhrCorpusReader.html#SKIP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.udhr.UdhrCorpusReader.__init__
nltk.corpus.reader.udhr.UdhrCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new plaintext corpus reader for a set of documents located at the given root directory. Example usage:
-
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 1/5 method documented
-
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.__init__
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new SentiWordNet Corpus Reader, using data from the specified file.
-
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader._db
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.html#_db
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader._parse_src_file
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.html#_parse_src_file
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.senti_synset
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.html#senti_synset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.senti_synsets
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.html#senti_synsets
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.all_senti_synsets
nltk.corpus.reader.sentiwordnet.SentiWordNetCorpusReader.html#all_senti_synsets
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset
nltk.corpus.reader.sentiwordnet.SentiSynset.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/4 instance variable, 1/6 method documented
-
nltk.corpus.reader.sentiwordnet.SentiSynset.__init__
nltk.corpus.reader.sentiwordnet.SentiSynset.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset._pos_score
nltk.corpus.reader.sentiwordnet.SentiSynset.html#_pos_score
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset._neg_score
nltk.corpus.reader.sentiwordnet.SentiSynset.html#_neg_score
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset._obj_score
nltk.corpus.reader.sentiwordnet.SentiSynset.html#_obj_score
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset.synset
nltk.corpus.reader.sentiwordnet.SentiSynset.html#synset
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset.pos_score
nltk.corpus.reader.sentiwordnet.SentiSynset.html#pos_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset.neg_score
nltk.corpus.reader.sentiwordnet.SentiSynset.html#neg_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset.obj_score
nltk.corpus.reader.sentiwordnet.SentiSynset.html#obj_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.sentiwordnet.SentiSynset.__str__
nltk.corpus.reader.sentiwordnet.SentiSynset.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Prints just the Pos/Neg scores for now.
-
nltk.corpus.reader.sentiwordnet.SentiSynset.__repr__
nltk.corpus.reader.sentiwordnet.SentiSynset.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp._parse_args
nltk.corpus.reader.nkjp.html#_parse_args
ZopeInterfaceFunction
Function
PRIVATE
Wraps function arguments: if fileids not specified then function set NKJPCorpusReader paths.
-
nltk.corpus.reader.nkjp.NKJPCorpusReader
nltk.corpus.reader.nkjp.NKJPCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 0/4 class variable, 9/10 methods documented
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.WORDS_MODE
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#WORDS_MODE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.SENTS_MODE
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#SENTS_MODE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.RAW_MODE
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#RAW_MODE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.__init__
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.nkjp.NKJPCorpusReader._paths
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#_paths
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.get_paths
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#get_paths
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.fileids
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#fileids
ZopeInterfaceFunction
Method
VISIBLE
Returns a list of file identifiers for the fileids that make up this corpus.
-
nltk.corpus.reader.nkjp.NKJPCorpusReader._view
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#_view
ZopeInterfaceFunction
Method
PRIVATE
Returns a view specialised for use with particular corpus file.
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.add_root
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#add_root
ZopeInterfaceFunction
Method
VISIBLE
Add root if necessary to specified fileid.
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.sents
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Returns sentences in specified fileids.
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.words
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Returns words in specified fileids.
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.tagged_words
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Call with specified tags as a list, e.g. tags=['subst', 'comp']. Returns tagged words in specified fileids.
-
nltk.corpus.reader.nkjp.NKJPCorpusReader.raw
nltk.corpus.reader.nkjp.NKJPCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
Returns words in specified fileids.
-
nltk.corpus.reader.nkjp.NKJPCorpus_Header_View.handle_query
nltk.corpus.reader.nkjp.NKJPCorpus_Header_View.html#handle_query
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Header_View.handle_elt
nltk.corpus.reader.nkjp.NKJPCorpus_Header_View.html#handle_elt
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.nkjp.XML_Tool
nltk.corpus.reader.nkjp.XML_Tool.html
ZopeInterfaceClass
Class
VISIBLE
Helper class creating xml file to one without references to nkjp: namespace. That's needed because the XMLCorpusView assumes that one can find short substrings of XML that are valid XML, which is not true if a namespace is declared at top level
-
nltk.corpus.reader.nkjp.XML_Tool.__init__
nltk.corpus.reader.nkjp.XML_Tool.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.XML_Tool.read_file
nltk.corpus.reader.nkjp.XML_Tool.html#read_file
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.XML_Tool.write_file
nltk.corpus.reader.nkjp.XML_Tool.html#write_file
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.XML_Tool.build_preprocessed_file
nltk.corpus.reader.nkjp.XML_Tool.html#build_preprocessed_file
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.XML_Tool.remove_preprocessed_file
nltk.corpus.reader.nkjp.XML_Tool.html#remove_preprocessed_file
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html
ZopeInterfaceClass
Class
VISIBLE
A stream backed corpus view specialized for use with ann_segmentation.xml files in NKJP corpus.
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.__init__
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view based on a specified XML file.
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.tagspec
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#tagspec
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.text_view
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#text_view
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.xml_tool
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#xml_tool
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.get_segm_id
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#get_segm_id
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.get_sent_beg
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#get_sent_beg
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.get_sent_end
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#get_sent_end
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.get_sentences
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#get_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.remove_choice
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#remove_choice
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.handle_query
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#handle_query
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.handle_elt
nltk.corpus.reader.nkjp.NKJPCorpus_Segmentation_View.html#handle_elt
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html
ZopeInterfaceClass
Class
VISIBLE
A stream backed corpus view specialized for use with text.xml files in NKJP corpus.
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.SENTS_MODE
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#SENTS_MODE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.RAW_MODE
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#RAW_MODE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.__init__
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view based on a specified XML file.
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.mode
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#mode
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.tagspec
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#tagspec
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.segm_dict
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#segm_dict
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.xml_tool
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#xml_tool
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.handle_query
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#handle_query
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.read_block
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Returns text as a list of sentences.
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.get_segm_id
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#get_segm_id
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.handle_elt
nltk.corpus.reader.nkjp.NKJPCorpus_Text_View.html#handle_elt
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.html
ZopeInterfaceClass
Class
VISIBLE
A stream backed corpus view specialized for use with ann_morphosyntax.xml files in NKJP corpus.
-
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.__init__
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view based on a specified XML file.
-
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.tags
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.html#tags
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.tagspec
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.html#tagspec
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.xml_tool
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.html#xml_tool
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.handle_query
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.html#handle_query
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.handle_elt
nltk.corpus.reader.nkjp.NKJPCorpus_Morph_View.html#handle_elt
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A corpus reader used to access language An Crubadan n-gram files.
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader._LANG_MAPPER_FILE
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#_LANG_MAPPER_FILE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader._all_lang_freq
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#_all_lang_freq
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader.__init__
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader._lang_mapping_data
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#_lang_mapping_data
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader.lang_freq
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#lang_freq
ZopeInterfaceFunction
Method
VISIBLE
Return n-gram FreqDist for a specific language given ISO 639-3 language code
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader.langs
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#langs
ZopeInterfaceFunction
Method
VISIBLE
Return a list of supported languages as ISO 639-3 codes
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader.iso_to_crubadan
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#iso_to_crubadan
ZopeInterfaceFunction
Method
VISIBLE
Return internal Crubadan code based on ISO 639-3 code
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader.crubadan_to_iso
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#crubadan_to_iso
ZopeInterfaceFunction
Method
VISIBLE
Return ISO 639-3 code given internal Crubadan code
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader._load_lang_mapping_data
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#_load_lang_mapping_data
ZopeInterfaceFunction
Method
PRIVATE
Load language mappings between codes and description from table.txt
-
nltk.corpus.reader.crubadan.CrubadanCorpusReader._load_lang_ngrams
nltk.corpus.reader.crubadan.CrubadanCorpusReader.html#_load_lang_ngrams
ZopeInterfaceFunction
Method
PRIVATE
Load single n-gram language file given the ISO 639-3 language code and return its FreqDist
-
nltk.corpus.reader.mte.xpath
nltk.corpus.reader.mte.html#xpath
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTECorpusView
nltk.corpus.reader.mte.MTECorpusView.html
ZopeInterfaceClass
Class
VISIBLE
Class for lazy viewing the MTE Corpus.
-
nltk.corpus.reader.mte.MTECorpusView.__init__
nltk.corpus.reader.mte.MTECorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view based on a specified XML file.
-
nltk.corpus.reader.mte.MTECorpusView.read_block
nltk.corpus.reader.mte.MTECorpusView.html#read_block
ZopeInterfaceFunction
Method
VISIBLE
Read from stream until we find at least one element that matches tagspec, and return the result of applying elt_handler to each element found.
-
nltk.corpus.reader.mte.MTEFileReader
nltk.corpus.reader.mte.MTEFileReader.html
ZopeInterfaceClass
Class
VISIBLE
Class for loading the content of the multext-east corpus. It parses the xml files and does some tag-filtering depending on the given method parameters.
-
nltk.corpus.reader.mte.MTEFileReader.ns
nltk.corpus.reader.mte.MTEFileReader.html#ns
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.tag_ns
nltk.corpus.reader.mte.MTEFileReader.html#tag_ns
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.xml_ns
nltk.corpus.reader.mte.MTEFileReader.html#xml_ns
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.word_path
nltk.corpus.reader.mte.MTEFileReader.html#word_path
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.sent_path
nltk.corpus.reader.mte.MTEFileReader.html#sent_path
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.para_path
nltk.corpus.reader.mte.MTEFileReader.html#para_path
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.__init__
nltk.corpus.reader.mte.MTEFileReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.__file_path
nltk.corpus.reader.mte.MTEFileReader.html#__file_path
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._word_elt
nltk.corpus.reader.mte.MTEFileReader.html#_word_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._sent_elt
nltk.corpus.reader.mte.MTEFileReader.html#_sent_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._para_elt
nltk.corpus.reader.mte.MTEFileReader.html#_para_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._tagged_word_elt
nltk.corpus.reader.mte.MTEFileReader.html#_tagged_word_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._tagged_sent_elt
nltk.corpus.reader.mte.MTEFileReader.html#_tagged_sent_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._tagged_para_elt
nltk.corpus.reader.mte.MTEFileReader.html#_tagged_para_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._lemma_word_elt
nltk.corpus.reader.mte.MTEFileReader.html#_lemma_word_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._lemma_sent_elt
nltk.corpus.reader.mte.MTEFileReader.html#_lemma_sent_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader._lemma_para_elt
nltk.corpus.reader.mte.MTEFileReader.html#_lemma_para_elt
ZopeInterfaceFunction
Class Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.words
nltk.corpus.reader.mte.MTEFileReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.sents
nltk.corpus.reader.mte.MTEFileReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.paras
nltk.corpus.reader.mte.MTEFileReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.lemma_words
nltk.corpus.reader.mte.MTEFileReader.html#lemma_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.tagged_words
nltk.corpus.reader.mte.MTEFileReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.lemma_sents
nltk.corpus.reader.mte.MTEFileReader.html#lemma_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.tagged_sents
nltk.corpus.reader.mte.MTEFileReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.lemma_paras
nltk.corpus.reader.mte.MTEFileReader.html#lemma_paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTEFileReader.tagged_paras
nltk.corpus.reader.mte.MTEFileReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTETagConverter
nltk.corpus.reader.mte.MTETagConverter.html
ZopeInterfaceClass
Class
VISIBLE
Class for converting msd tags to universal tags, more conversion options are currently not implemented.
-
nltk.corpus.reader.mte.MTETagConverter.mapping_msd_universal
nltk.corpus.reader.mte.MTETagConverter.html#mapping_msd_universal
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.mte.MTETagConverter.msd_to_universal
nltk.corpus.reader.mte.MTETagConverter.html#msd_to_universal
ZopeInterfaceFunction
Static Method
VISIBLE
This function converts the annotation from the Multex-East to the universal tagset as described in Chapter 5 of the NLTK-Book
-
nltk.corpus.reader.mte.MTECorpusReader
nltk.corpus.reader.mte.MTECorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for corpora following the TEI-p5 xml scheme, such as MULTEXT-East. MULTEXT-East contains part-of-speech-tagged words with a quite precise tagging scheme. These tags can be converted to the Universal tagset
-
nltk.corpus.reader.mte.MTECorpusReader.__init__
nltk.corpus.reader.mte.MTECorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new MTECorpusreader for a set of documents located at the given root directory. Example usage:
-
nltk.corpus.reader.mte.MTECorpusReader.__fileids
nltk.corpus.reader.mte.MTECorpusReader.html#__fileids
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.mte.MTECorpusReader.readme
nltk.corpus.reader.mte.MTECorpusReader.html#readme
ZopeInterfaceFunction
Method
VISIBLE
Prints some information about this corpus. :return: the content of the attached README file :rtype: str
-
nltk.corpus.reader.mte.MTECorpusReader.raw
nltk.corpus.reader.mte.MTECorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.mte.MTECorpusReader.words
nltk.corpus.reader.mte.MTECorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.mte.MTECorpusReader.sents
nltk.corpus.reader.mte.MTECorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.mte.MTECorpusReader.paras
nltk.corpus.reader.mte.MTECorpusReader.html#paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.mte.MTECorpusReader.lemma_words
nltk.corpus.reader.mte.MTECorpusReader.html#lemma_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.mte.MTECorpusReader.tagged_words
nltk.corpus.reader.mte.MTECorpusReader.html#tagged_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.mte.MTECorpusReader.lemma_sents
nltk.corpus.reader.mte.MTECorpusReader.html#lemma_sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.mte.MTECorpusReader.tagged_sents
nltk.corpus.reader.mte.MTECorpusReader.html#tagged_sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.mte.MTECorpusReader.lemma_paras
nltk.corpus.reader.mte.MTECorpusReader.html#lemma_paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.mte.MTECorpusReader.tagged_paras
nltk.corpus.reader.mte.MTECorpusReader.html#tagged_paras
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.reviews.TITLE
nltk.corpus.reader.reviews.html#TITLE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.FEATURES
nltk.corpus.reader.reviews.html#FEATURES
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.NOTES
nltk.corpus.reader.reviews.html#NOTES
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.SENT
nltk.corpus.reader.reviews.html#SENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.Review
nltk.corpus.reader.reviews.Review.html
ZopeInterfaceClass
Class
VISIBLE
A Review is the main block of a ReviewsCorpusReader.
-
nltk.corpus.reader.reviews.Review.__init__
nltk.corpus.reader.reviews.Review.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.reviews.Review.title
nltk.corpus.reader.reviews.Review.html#title
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.Review.review_lines
nltk.corpus.reader.reviews.Review.html#review_lines
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.Review.add_line
nltk.corpus.reader.reviews.Review.html#add_line
ZopeInterfaceFunction
Method
VISIBLE
Add a line (ReviewLine) to the review.
-
nltk.corpus.reader.reviews.Review.features
nltk.corpus.reader.reviews.Review.html#features
ZopeInterfaceFunction
Method
VISIBLE
Return a list of features in the review. Each feature is a tuple made of the specific item feature and the opinion strength about that feature.
-
nltk.corpus.reader.reviews.Review.sents
nltk.corpus.reader.reviews.Review.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Return all tokenized sentences in the review.
-
nltk.corpus.reader.reviews.Review.__repr__
nltk.corpus.reader.reviews.Review.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.ReviewLine
nltk.corpus.reader.reviews.ReviewLine.html
ZopeInterfaceClass
Class
VISIBLE
A ReviewLine represents a sentence of the review, together with (optional) annotations of its features and notes about the reviewed item.
-
nltk.corpus.reader.reviews.ReviewLine.__init__
nltk.corpus.reader.reviews.ReviewLine.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.ReviewLine.sent
nltk.corpus.reader.reviews.ReviewLine.html#sent
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.ReviewLine.features
nltk.corpus.reader.reviews.ReviewLine.html#features
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.ReviewLine.notes
nltk.corpus.reader.reviews.ReviewLine.html#notes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.ReviewLine.__repr__
nltk.corpus.reader.reviews.ReviewLine.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.reviews.ReviewsCorpusReader
nltk.corpus.reader.reviews.ReviewsCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for the Customer Review Data dataset by Hu, Liu (2004). Note: we are not applying any sentence tokenization at the moment, just word tokenization.
-
nltk.corpus.reader.reviews.ReviewsCorpusReader.__init__
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.reviews.ReviewsCorpusReader._word_tokenizer
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.reviews.ReviewsCorpusReader.features
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#features
ZopeInterfaceFunction
Method
VISIBLE
Return a list of features. Each feature is a tuple made of the specific item feature and the opinion strength about that feature.
-
nltk.corpus.reader.reviews.ReviewsCorpusReader.raw
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.reviews.ReviewsCorpusReader.readme
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#readme
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus README.txt file.
-
nltk.corpus.reader.reviews.ReviewsCorpusReader.reviews
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#reviews
ZopeInterfaceFunction
Method
VISIBLE
Return all the reviews as a list of Review objects. If fileids is specified, return all the reviews from each of the specified files.
-
nltk.corpus.reader.reviews.ReviewsCorpusReader.sents
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Return all sentences in the corpus or in the specified files.
-
nltk.corpus.reader.reviews.ReviewsCorpusReader.words
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Return all words and punctuation symbols in the corpus or in the specified files.
-
nltk.corpus.reader.reviews.ReviewsCorpusReader._read_features
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#_read_features
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.reviews.ReviewsCorpusReader._read_review_block
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#_read_review_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.reviews.ReviewsCorpusReader._read_sent_block
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#_read_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.reviews.ReviewsCorpusReader._read_word_block
nltk.corpus.reader.reviews.ReviewsCorpusReader.html#_read_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.opinion_lexicon.IgnoreReadmeCorpusView
nltk.corpus.reader.opinion_lexicon.IgnoreReadmeCorpusView.html
ZopeInterfaceClass
Class
VISIBLE
This CorpusView is used to skip the initial readme block of the corpus.
-
nltk.corpus.reader.opinion_lexicon.IgnoreReadmeCorpusView.__init__
nltk.corpus.reader.opinion_lexicon.IgnoreReadmeCorpusView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new corpus view, based on the file fileid, and read with block_reader. See the class documentation for more information.
-
nltk.corpus.reader.opinion_lexicon.IgnoreReadmeCorpusView._filepos
nltk.corpus.reader.opinion_lexicon.IgnoreReadmeCorpusView.html#_filepos
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for Liu and Hu opinion lexicon. Blank lines and readme are ignored.
-
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader.words
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Return all words in the opinion lexicon. Note that these words are not sorted in alphabetical order.
-
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader.positive
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader.html#positive
ZopeInterfaceFunction
Method
VISIBLE
Return all positive words in alphabetical order.
-
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader.negative
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader.html#negative
ZopeInterfaceFunction
Method
VISIBLE
Return all negative words in alphabetical order.
-
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader._read_word_block
nltk.corpus.reader.opinion_lexicon.OpinionLexiconCorpusReader.html#_read_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.pros_cons.ProsConsCorpusReader
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for the Pros and Cons sentence dataset.
-
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.__init__
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.pros_cons.ProsConsCorpusReader._word_tokenizer
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.sents
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Return all sentences in the corpus or in the specified files/categories.
-
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.words
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Return all words and punctuation symbols in the corpus or in the specified files/categories.
-
nltk.corpus.reader.pros_cons.ProsConsCorpusReader._read_sent_block
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.html#_read_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.pros_cons.ProsConsCorpusReader._read_word_block
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.html#_read_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.pros_cons.ProsConsCorpusReader._resolve
nltk.corpus.reader.pros_cons.ProsConsCorpusReader.html#_resolve
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.__init__
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader._word_tokenizer
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader._sent_tokenizer
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#_sent_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader._resolve
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#_resolve
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.raw
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.readme
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#readme
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus Readme.txt file.
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.sents
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Return all sentences in the corpus or in the specified file(s).
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.words
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Return all words and punctuation symbols in the corpus or in the specified file(s).
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader._read_sent_block
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#_read_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader._read_word_block
nltk.corpus.reader.categorized_sents.CategorizedSentencesCorpusReader.html#_read_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.comparative_sents.STARS
nltk.corpus.reader.comparative_sents.html#STARS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.COMPARISON
nltk.corpus.reader.comparative_sents.html#COMPARISON
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.CLOSE_COMPARISON
nltk.corpus.reader.comparative_sents.html#CLOSE_COMPARISON
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.GRAD_COMPARISON
nltk.corpus.reader.comparative_sents.html#GRAD_COMPARISON
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.NON_GRAD_COMPARISON
nltk.corpus.reader.comparative_sents.html#NON_GRAD_COMPARISON
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.ENTITIES_FEATS
nltk.corpus.reader.comparative_sents.html#ENTITIES_FEATS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.KEYWORD
nltk.corpus.reader.comparative_sents.html#KEYWORD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.Comparison
nltk.corpus.reader.comparative_sents.Comparison.html
ZopeInterfaceClass
Class
VISIBLE
A Comparison represents a comparative sentence and its constituents.
-
nltk.corpus.reader.comparative_sents.Comparison.__init__
nltk.corpus.reader.comparative_sents.Comparison.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.comparative_sents.Comparison.text
nltk.corpus.reader.comparative_sents.Comparison.html#text
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.Comparison.comp_type
nltk.corpus.reader.comparative_sents.Comparison.html#comp_type
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.Comparison.entity_1
nltk.corpus.reader.comparative_sents.Comparison.html#entity_1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.Comparison.entity_2
nltk.corpus.reader.comparative_sents.Comparison.html#entity_2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.Comparison.feature
nltk.corpus.reader.comparative_sents.Comparison.html#feature
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.Comparison.keyword
nltk.corpus.reader.comparative_sents.Comparison.html#keyword
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.Comparison.__repr__
nltk.corpus.reader.comparative_sents.Comparison.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
Reader for the Comparative Sentence Dataset by Jindal and Liu (2006).
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.__init__
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader._word_tokenizer
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader._sent_tokenizer
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#_sent_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.comparisons
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#comparisons
ZopeInterfaceFunction
Method
VISIBLE
Return all comparisons in the corpus.
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.keywords
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#keywords
ZopeInterfaceFunction
Method
VISIBLE
Return a set of all keywords used in the corpus.
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.keywords_readme
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#keywords_readme
ZopeInterfaceFunction
Method
VISIBLE
Return the list of words and constituents considered as clues of a comparison (from listOfkeywords.txt).
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.raw
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#raw
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.readme
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#readme
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus readme file.
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.sents
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#sents
ZopeInterfaceFunction
Method
VISIBLE
Return all sentences in the corpus.
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.words
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
Return all words and punctuation symbols in the corpus.
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader._read_comparison_block
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#_read_comparison_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader._read_keyword_block
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#_read_keyword_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader._read_sent_block
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#_read_sent_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader._read_word_block
nltk.corpus.reader.comparative_sents.ComparativeSentencesCorpusReader.html#_read_word_block
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 0/2 class variable, 3/4 methods documented
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.MEANING_Q
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#MEANING_Q
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.TRANSLATION_Q
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#TRANSLATION_Q
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.__init__
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader._c
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#_c
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader._uid_lv
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#_uid_lv
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader._lv_uid
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#_lv_uid
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.language_varieties
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#language_varieties
ZopeInterfaceFunction
Method
VISIBLE
Return a list of PanLex language varieties.
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.meanings
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#meanings
ZopeInterfaceFunction
Method
VISIBLE
Return a list of meanings for an expression.
-
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.translations
nltk.corpus.reader.panlex_lite.PanLexLiteCorpusReader.html#translations
ZopeInterfaceFunction
Method
VISIBLE
Return a list of translations for an expression into a single language variety.
-
nltk.corpus.reader.panlex_lite.Meaning
nltk.corpus.reader.panlex_lite.Meaning.html
ZopeInterfaceClass
Class
VISIBLE
Represents a single PanLex meaning. A meaning is a translation set derived from a single source.
-
nltk.corpus.reader.panlex_lite.Meaning.__init__
nltk.corpus.reader.panlex_lite.Meaning.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.panlex_lite.Meaning.id
nltk.corpus.reader.panlex_lite.Meaning.html#id
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.panlex_lite.Meaning.quality
nltk.corpus.reader.panlex_lite.Meaning.html#quality
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.panlex_lite.Meaning.source
nltk.corpus.reader.panlex_lite.Meaning.html#source
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.panlex_lite.Meaning.source_group
nltk.corpus.reader.panlex_lite.Meaning.html#source_group
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.panlex_lite.Meaning.expressions
nltk.corpus.reader.panlex_lite.Meaning.html#expressions
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.panlex_swadesh.PanlexLanguage
nltk.corpus.reader.panlex_swadesh.html#PanlexLanguage
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
This is a class to read the PanLex Swadesh list from
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.__init__
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.swadesh_size
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#swadesh_size
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader._languages
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#_languages
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader._macro_langauges
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#_macro_langauges
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.license
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#license
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus LICENSE file, if it exists.
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.readme
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#readme
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of the corpus README file, if it exists.
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.language_codes
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#language_codes
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.get_languages
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#get_languages
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.get_macrolanguages
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#get_macrolanguages
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.words_by_lang
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#words_by_lang
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.words_by_iso639
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#words_by_iso639
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.entries
nltk.corpus.reader.panlex_swadesh.PanlexSwadeshCorpusReader.html#entries
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.wordnet._INF
nltk.corpus.reader.wordnet.html#_INF
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.ADJ
nltk.corpus.reader.wordnet.html#ADJ
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.ADJ_SAT
nltk.corpus.reader.wordnet.html#ADJ_SAT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.ADV
nltk.corpus.reader.wordnet.html#ADV
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.NOUN
nltk.corpus.reader.wordnet.html#NOUN
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.VERB
nltk.corpus.reader.wordnet.html#VERB
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.POS_LIST
nltk.corpus.reader.wordnet.html#POS_LIST
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.VERB_FRAME_STRINGS
nltk.corpus.reader.wordnet.html#VERB_FRAME_STRINGS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.SENSENUM_RE
nltk.corpus.reader.wordnet.html#SENSENUM_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetError
nltk.corpus.reader.wordnet.WordNetError.html
ZopeInterfaceClass
Class
VISIBLE
An exception class for wordnet-related errors.
-
nltk.corpus.reader.wordnet._WordNetObject
nltk.corpus.reader.wordnet._WordNetObject.html
ZopeInterfaceClass
Class
PRIVATE
A common base class for lemmas and synsets.
-
nltk.corpus.reader.wordnet._WordNetObject.hypernyms
nltk.corpus.reader.wordnet._WordNetObject.html#hypernyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject._hypernyms
nltk.corpus.reader.wordnet._WordNetObject.html#_hypernyms
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.instance_hypernyms
nltk.corpus.reader.wordnet._WordNetObject.html#instance_hypernyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject._instance_hypernyms
nltk.corpus.reader.wordnet._WordNetObject.html#_instance_hypernyms
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.hyponyms
nltk.corpus.reader.wordnet._WordNetObject.html#hyponyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.instance_hyponyms
nltk.corpus.reader.wordnet._WordNetObject.html#instance_hyponyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.member_holonyms
nltk.corpus.reader.wordnet._WordNetObject.html#member_holonyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.substance_holonyms
nltk.corpus.reader.wordnet._WordNetObject.html#substance_holonyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.part_holonyms
nltk.corpus.reader.wordnet._WordNetObject.html#part_holonyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.member_meronyms
nltk.corpus.reader.wordnet._WordNetObject.html#member_meronyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.substance_meronyms
nltk.corpus.reader.wordnet._WordNetObject.html#substance_meronyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.part_meronyms
nltk.corpus.reader.wordnet._WordNetObject.html#part_meronyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.topic_domains
nltk.corpus.reader.wordnet._WordNetObject.html#topic_domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.in_topic_domains
nltk.corpus.reader.wordnet._WordNetObject.html#in_topic_domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.region_domains
nltk.corpus.reader.wordnet._WordNetObject.html#region_domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.in_region_domains
nltk.corpus.reader.wordnet._WordNetObject.html#in_region_domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.usage_domains
nltk.corpus.reader.wordnet._WordNetObject.html#usage_domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.in_usage_domains
nltk.corpus.reader.wordnet._WordNetObject.html#in_usage_domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.attributes
nltk.corpus.reader.wordnet._WordNetObject.html#attributes
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.entailments
nltk.corpus.reader.wordnet._WordNetObject.html#entailments
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.causes
nltk.corpus.reader.wordnet._WordNetObject.html#causes
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.also_sees
nltk.corpus.reader.wordnet._WordNetObject.html#also_sees
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.verb_groups
nltk.corpus.reader.wordnet._WordNetObject.html#verb_groups
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.similar_tos
nltk.corpus.reader.wordnet._WordNetObject.html#similar_tos
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.__hash__
nltk.corpus.reader.wordnet._WordNetObject.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.__eq__
nltk.corpus.reader.wordnet._WordNetObject.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.__ne__
nltk.corpus.reader.wordnet._WordNetObject.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._WordNetObject.__lt__
nltk.corpus.reader.wordnet._WordNetObject.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma
nltk.corpus.reader.wordnet.Lemma.html
ZopeInterfaceClass
Class
VISIBLE
The lexical entry for a single morphological form of a sense-disambiguated word.
-
nltk.corpus.reader.wordnet.Lemma.__slots__
nltk.corpus.reader.wordnet.Lemma.html#__slots__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.__init__
nltk.corpus.reader.wordnet.Lemma.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._wordnet_corpus_reader
nltk.corpus.reader.wordnet.Lemma.html#_wordnet_corpus_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._name
nltk.corpus.reader.wordnet.Lemma.html#_name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._syntactic_marker
nltk.corpus.reader.wordnet.Lemma.html#_syntactic_marker
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._synset
nltk.corpus.reader.wordnet.Lemma.html#_synset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._frame_strings
nltk.corpus.reader.wordnet.Lemma.html#_frame_strings
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._frame_ids
nltk.corpus.reader.wordnet.Lemma.html#_frame_ids
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._lexname_index
nltk.corpus.reader.wordnet.Lemma.html#_lexname_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._lex_id
nltk.corpus.reader.wordnet.Lemma.html#_lex_id
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._lang
nltk.corpus.reader.wordnet.Lemma.html#_lang
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._key
nltk.corpus.reader.wordnet.Lemma.html#_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.name
nltk.corpus.reader.wordnet.Lemma.html#name
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.syntactic_marker
nltk.corpus.reader.wordnet.Lemma.html#syntactic_marker
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.synset
nltk.corpus.reader.wordnet.Lemma.html#synset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.frame_strings
nltk.corpus.reader.wordnet.Lemma.html#frame_strings
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.frame_ids
nltk.corpus.reader.wordnet.Lemma.html#frame_ids
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.lang
nltk.corpus.reader.wordnet.Lemma.html#lang
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.key
nltk.corpus.reader.wordnet.Lemma.html#key
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.__repr__
nltk.corpus.reader.wordnet.Lemma.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma._related
nltk.corpus.reader.wordnet.Lemma.html#_related
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.count
nltk.corpus.reader.wordnet.Lemma.html#count
ZopeInterfaceFunction
Method
VISIBLE
Return the frequency count for this Lemma
-
nltk.corpus.reader.wordnet.Lemma.antonyms
nltk.corpus.reader.wordnet.Lemma.html#antonyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.derivationally_related_forms
nltk.corpus.reader.wordnet.Lemma.html#derivationally_related_forms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Lemma.pertainyms
nltk.corpus.reader.wordnet.Lemma.html#pertainyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset
nltk.corpus.reader.wordnet.Synset.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset.__slots__
nltk.corpus.reader.wordnet.Synset.html#__slots__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.__init__
nltk.corpus.reader.wordnet.Synset.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._wordnet_corpus_reader
nltk.corpus.reader.wordnet.Synset.html#_wordnet_corpus_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._pos
nltk.corpus.reader.wordnet.Synset.html#_pos
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._offset
nltk.corpus.reader.wordnet.Synset.html#_offset
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._name
nltk.corpus.reader.wordnet.Synset.html#_name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._frame_ids
nltk.corpus.reader.wordnet.Synset.html#_frame_ids
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._lemmas
nltk.corpus.reader.wordnet.Synset.html#_lemmas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._lemma_names
nltk.corpus.reader.wordnet.Synset.html#_lemma_names
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._definition
nltk.corpus.reader.wordnet.Synset.html#_definition
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._examples
nltk.corpus.reader.wordnet.Synset.html#_examples
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._lexname
nltk.corpus.reader.wordnet.Synset.html#_lexname
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._all_hypernyms
nltk.corpus.reader.wordnet.Synset.html#_all_hypernyms
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._pointers
nltk.corpus.reader.wordnet.Synset.html#_pointers
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._lemma_pointers
nltk.corpus.reader.wordnet.Synset.html#_lemma_pointers
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.pos
nltk.corpus.reader.wordnet.Synset.html#pos
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.offset
nltk.corpus.reader.wordnet.Synset.html#offset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.name
nltk.corpus.reader.wordnet.Synset.html#name
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.frame_ids
nltk.corpus.reader.wordnet.Synset.html#frame_ids
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.definition
nltk.corpus.reader.wordnet.Synset.html#definition
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.examples
nltk.corpus.reader.wordnet.Synset.html#examples
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.lexname
nltk.corpus.reader.wordnet.Synset.html#lexname
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._needs_root
nltk.corpus.reader.wordnet.Synset.html#_needs_root
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.lemma_names
nltk.corpus.reader.wordnet.Synset.html#lemma_names
ZopeInterfaceFunction
Method
VISIBLE
Return all the lemma_names associated with the synset
-
nltk.corpus.reader.wordnet.Synset.lemmas
nltk.corpus.reader.wordnet.Synset.html#lemmas
ZopeInterfaceFunction
Method
VISIBLE
Return all the lemma objects associated with the synset
-
nltk.corpus.reader.wordnet.Synset.root_hypernyms
nltk.corpus.reader.wordnet.Synset.html#root_hypernyms
ZopeInterfaceFunction
Method
VISIBLE
Get the topmost hypernyms of this synset in WordNet.
-
nltk.corpus.reader.wordnet.Synset.max_depth
nltk.corpus.reader.wordnet.Synset.html#max_depth
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.wordnet.Synset._max_depth
nltk.corpus.reader.wordnet.Synset.html#_max_depth
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.min_depth
nltk.corpus.reader.wordnet.Synset.html#min_depth
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.corpus.reader.wordnet.Synset._min_depth
nltk.corpus.reader.wordnet.Synset.html#_min_depth
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.closure
nltk.corpus.reader.wordnet.Synset.html#closure
ZopeInterfaceFunction
Method
VISIBLE
Return the transitive closure of source under the rel relationship, breadth-first, discarding cycles:
-
nltk.corpus.reader.wordnet.Synset.tree
nltk.corpus.reader.wordnet.Synset.html#tree
ZopeInterfaceFunction
Method
VISIBLE
Return the full relation tree, including self, discarding cycles:
-
nltk.corpus.reader.wordnet.Synset.hypernym_paths
nltk.corpus.reader.wordnet.Synset.html#hypernym_paths
ZopeInterfaceFunction
Method
VISIBLE
Get the path(s) from this synset to the root, where each path is a list of the synset nodes traversed on the way to the root.
-
nltk.corpus.reader.wordnet.Synset.common_hypernyms
nltk.corpus.reader.wordnet.Synset.html#common_hypernyms
ZopeInterfaceFunction
Method
VISIBLE
Find all synsets that are hypernyms of this synset and the other synset.
-
nltk.corpus.reader.wordnet.Synset.lowest_common_hypernyms
nltk.corpus.reader.wordnet.Synset.html#lowest_common_hypernyms
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset.hypernym_distances
nltk.corpus.reader.wordnet.Synset.html#hypernym_distances
ZopeInterfaceFunction
Method
VISIBLE
Get the path(s) from this synset to the root, counting the distance of each node from the initial node on the way. A set of (synset, distance) tuples is returned.
-
nltk.corpus.reader.wordnet.Synset._shortest_hypernym_paths
nltk.corpus.reader.wordnet.Synset.html#_shortest_hypernym_paths
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.Synset.shortest_path_distance
nltk.corpus.reader.wordnet.Synset.html#shortest_path_distance
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset.path_similarity
nltk.corpus.reader.wordnet.Synset.html#path_similarity
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset.lch_similarity
nltk.corpus.reader.wordnet.Synset.html#lch_similarity
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset.wup_similarity
nltk.corpus.reader.wordnet.Synset.html#wup_similarity
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset.res_similarity
nltk.corpus.reader.wordnet.Synset.html#res_similarity
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset.jcn_similarity
nltk.corpus.reader.wordnet.Synset.html#jcn_similarity
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset.lin_similarity
nltk.corpus.reader.wordnet.Synset.html#lin_similarity
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.Synset._iter_hypernym_lists
nltk.corpus.reader.wordnet.Synset.html#_iter_hypernym_lists
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.corpus.reader.wordnet.Synset.__repr__
nltk.corpus.reader.wordnet.Synset.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.Synset._related
nltk.corpus.reader.wordnet.Synset.html#_related
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader
nltk.corpus.reader.wordnet.WordNetCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A corpus reader used to access wordnet or its variants.
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._ENCODING
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_ENCODING
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.ADJ
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#ADJ
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.ADJ_SAT
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#ADJ_SAT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.ADV
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#ADV
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.NOUN
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#NOUN
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.VERB
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#VERB
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._FILEMAP
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_FILEMAP
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._pos_numbers
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_pos_numbers
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._pos_names
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_pos_names
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._FILES
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_FILES
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.__init__
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new wordnet corpus reader, with the given root directory.
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._lemma_pos_offset_map
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_lemma_pos_offset_map
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._synset_offset_cache
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_synset_offset_cache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._max_depth
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_max_depth
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._omw_reader
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_omw_reader
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._lang_data
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_lang_data
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._data_file_map
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_data_file_map
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._exception_map
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_exception_map
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._lexnames
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_lexnames
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._key_count_file
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_key_count_file
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._key_synset_file
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_key_synset_file
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.of2ss
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#of2ss
ZopeInterfaceFunction
Method
VISIBLE
take an id and return the synsets
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.ss2of
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#ss2of
ZopeInterfaceFunction
Method
VISIBLE
return the ID of the synset
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._load_lang_data
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_load_lang_data
ZopeInterfaceFunction
Method
PRIVATE
load the wordnet data of the requested language from the file to the cache, _lang_data
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.langs
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#langs
ZopeInterfaceFunction
Method
VISIBLE
return a list of languages supported by Multilingual Wordnet
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._load_lemma_pos_offset_map
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_load_lemma_pos_offset_map
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._load_exception_map
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_load_exception_map
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._compute_max_depth
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_compute_max_depth
ZopeInterfaceFunction
Method
PRIVATE
Compute the max depth for the given part of speech. This is used by the lch similarity metric.
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.get_version
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#get_version
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.lemma
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#lemma
ZopeInterfaceFunction
Method
VISIBLE
Return lemma object that matches the name
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.lemma_from_key
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#lemma_from_key
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.synset
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#synset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._data_file
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_data_file
ZopeInterfaceFunction
Method
PRIVATE
Return an open file pointer for the data file for the given part of speech.
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.synset_from_pos_and_offset
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#synset_from_pos_and_offset
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._synset_from_pos_and_offset
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_synset_from_pos_and_offset
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._synset_from_pos_and_line
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_synset_from_pos_and_line
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.synset_from_sense_key
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#synset_from_sense_key
ZopeInterfaceFunction
Method
VISIBLE
Retrieves synset based on a given sense_key. Sense keys can be obtained from lemma.key()
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.synsets
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#synsets
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.lemmas
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#lemmas
ZopeInterfaceFunction
Method
VISIBLE
Return all Lemma objects with a name matching the specified lemma name and part of speech tag. Matches any part of speech tag if none is specified.
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.all_lemma_names
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#all_lemma_names
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.all_synsets
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#all_synsets
ZopeInterfaceFunction
Method
VISIBLE
Iterate over all synsets with a given part of speech tag. If no pos is specified, all synsets for all parts of speech will be loaded.
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.words
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#words
ZopeInterfaceFunction
Method
VISIBLE
return lemmas of the given language as list of words
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.license
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#license
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of LICENSE (for omw) use lang=lang to get the license for an individual language
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.readme
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#readme
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of README (for omw) use lang=lang to get the readme for an individual language
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.citation
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#citation
ZopeInterfaceFunction
Method
VISIBLE
Return the contents of citation.bib file (for omw) use lang=lang to get the citation for an individual language
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.lemma_count
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#lemma_count
ZopeInterfaceFunction
Method
VISIBLE
Return the frequency count for this Lemma
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.path_similarity
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#path_similarity
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.lch_similarity
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#lch_similarity
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.wup_similarity
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#wup_similarity
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.res_similarity
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#res_similarity
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.jcn_similarity
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#jcn_similarity
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.lin_similarity
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#lin_similarity
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.morphy
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#morphy
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.MORPHOLOGICAL_SUBSTITUTIONS
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#MORPHOLOGICAL_SUBSTITUTIONS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader._morphy
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#_morphy
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.ic
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#ic
ZopeInterfaceFunction
Method
VISIBLE
Creates an information content lookup dictionary from a corpus.
-
nltk.corpus.reader.wordnet.WordNetCorpusReader.custom_lemmas
nltk.corpus.reader.wordnet.WordNetCorpusReader.html#custom_lemmas
ZopeInterfaceFunction
Method
VISIBLE
Reads a custom tab file containing mappings of lemmas in the given language to Princeton WordNet 3.0 synset offsets, allowing NLTK's WordNet functions to then be used with that language.
-
nltk.corpus.reader.wordnet.WordNetICCorpusReader
nltk.corpus.reader.wordnet.WordNetICCorpusReader.html
ZopeInterfaceClass
Class
VISIBLE
A corpus reader for the WordNet information content corpus.
-
nltk.corpus.reader.wordnet.WordNetICCorpusReader.__init__
nltk.corpus.reader.wordnet.WordNetICCorpusReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.WordNetICCorpusReader.ic
nltk.corpus.reader.wordnet.WordNetICCorpusReader.html#ic
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.corpus.reader.wordnet.path_similarity
nltk.corpus.reader.wordnet.html#path_similarity
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.lch_similarity
nltk.corpus.reader.wordnet.html#lch_similarity
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.wup_similarity
nltk.corpus.reader.wordnet.html#wup_similarity
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.res_similarity
nltk.corpus.reader.wordnet.html#res_similarity
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.jcn_similarity
nltk.corpus.reader.wordnet.html#jcn_similarity
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet.lin_similarity
nltk.corpus.reader.wordnet.html#lin_similarity
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._lcs_ic
nltk.corpus.reader.wordnet.html#_lcs_ic
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.corpus.reader.wordnet.information_content
nltk.corpus.reader.wordnet.html#information_content
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.corpus.reader.wordnet._get_pos
nltk.corpus.reader.wordnet.html#_get_pos
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.stem.wordnet.WordNetLemmatizer
nltk.stem.wordnet.WordNetLemmatizer.html
ZopeInterfaceClass
Class
VISIBLE
WordNet Lemmatizer
-
nltk.stem.wordnet.WordNetLemmatizer.__init__
nltk.stem.wordnet.WordNetLemmatizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.wordnet.WordNetLemmatizer.lemmatize
nltk.stem.wordnet.WordNetLemmatizer.html#lemmatize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.wordnet.WordNetLemmatizer.__repr__
nltk.stem.wordnet.WordNetLemmatizer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.rslp.RSLPStemmer
nltk.stem.rslp.RSLPStemmer.html
ZopeInterfaceClass
Class
VISIBLE
A stemmer for Portuguese.
-
nltk.stem.rslp.RSLPStemmer.__init__
nltk.stem.rslp.RSLPStemmer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.rslp.RSLPStemmer._model
nltk.stem.rslp.RSLPStemmer.html#_model
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.stem.rslp.RSLPStemmer.read_rule
nltk.stem.rslp.RSLPStemmer.html#read_rule
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.rslp.RSLPStemmer.stem
nltk.stem.rslp.RSLPStemmer.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Strip affixes from the token and return the stem.
-
nltk.stem.rslp.RSLPStemmer.apply_rule
nltk.stem.rslp.RSLPStemmer.html#apply_rule
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem
nltk.stem.cistem.Cistem.html
ZopeInterfaceClass
Class
VISIBLE
CISTEM Stemmer for German
-
nltk.stem.cistem.Cistem.strip_ge
nltk.stem.cistem.Cistem.html#strip_ge
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.repl_xx
nltk.stem.cistem.Cistem.html#repl_xx
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.strip_emr
nltk.stem.cistem.Cistem.html#strip_emr
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.strip_nd
nltk.stem.cistem.Cistem.html#strip_nd
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.strip_t
nltk.stem.cistem.Cistem.html#strip_t
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.strip_esn
nltk.stem.cistem.Cistem.html#strip_esn
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.repl_xx_back
nltk.stem.cistem.Cistem.html#repl_xx_back
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.__init__
nltk.stem.cistem.Cistem.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem._case_insensitive
nltk.stem.cistem.Cistem.html#_case_insensitive
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.stem.cistem.Cistem.replace_to
nltk.stem.cistem.Cistem.html#replace_to
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.replace_back
nltk.stem.cistem.Cistem.html#replace_back
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.stem.cistem.Cistem.stem
nltk.stem.cistem.Cistem.html#stem
ZopeInterfaceFunction
Method
VISIBLE
This method takes the word to be stemmed and returns the stemmed word.
-
nltk.stem.cistem.Cistem.segment
nltk.stem.cistem.Cistem.html#segment
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.lazyimport._debug
nltk.lazyimport.html#_debug
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.lazyimport.LazyModule
nltk.lazyimport.LazyModule.html
ZopeInterfaceClass
Class
VISIBLE
Lazy module class.
-
nltk.lazyimport.LazyModule.__lazymodule_init
nltk.lazyimport.LazyModule.html#__lazymodule_init
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.lazyimport.LazyModule.__lazymodule_name
nltk.lazyimport.LazyModule.html#__lazymodule_name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.lazyimport.LazyModule.__lazymodule_loaded
nltk.lazyimport.LazyModule.html#__lazymodule_loaded
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.lazyimport.LazyModule.__lazymodule_locals
nltk.lazyimport.LazyModule.html#__lazymodule_locals
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.lazyimport.LazyModule.__lazymodule_globals
nltk.lazyimport.LazyModule.html#__lazymodule_globals
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.lazyimport.LazyModule.__init__
nltk.lazyimport.LazyModule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a LazyModule instance wrapping module name.
-
nltk.lazyimport.LazyModule.__name__
nltk.lazyimport.LazyModule.html#__name__
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.lazyimport.LazyModule.__lazymodule_import
nltk.lazyimport.LazyModule.html#__lazymodule_import
ZopeInterfaceFunction
Method
PRIVATE
Import the module now.
-
nltk.lazyimport.LazyModule.__getattr__
nltk.lazyimport.LazyModule.html#__getattr__
ZopeInterfaceFunction
Method
VISIBLE
Import the module on demand and get the attribute.
-
nltk.lazyimport.LazyModule.__setattr__
nltk.lazyimport.LazyModule.html#__setattr__
ZopeInterfaceFunction
Method
VISIBLE
Import the module on demand and set the attribute.
-
nltk.lazyimport.LazyModule.__repr__
nltk.lazyimport.LazyModule.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.api.ClusterI
nltk.cluster.api.ClusterI.html
ZopeInterfaceClass
Class
VISIBLE
Interface covering basic clustering functionality.
-
nltk.cluster.api.ClusterI.cluster
nltk.cluster.api.ClusterI.html#cluster
ZopeInterfaceFunction
Method
VISIBLE
Assigns the vectors to clusters, learning the clustering parameters from the data. Returns a cluster identifier for each vector.
-
nltk.cluster.api.ClusterI.classify
nltk.cluster.api.ClusterI.html#classify
ZopeInterfaceFunction
Method
VISIBLE
Classifies the token into a cluster, setting the token's CLUSTER parameter to that cluster identifier.
-
nltk.cluster.api.ClusterI.likelihood
nltk.cluster.api.ClusterI.html#likelihood
ZopeInterfaceFunction
Method
VISIBLE
Returns the likelihood (a float) of the token having the corresponding cluster.
-
nltk.cluster.api.ClusterI.classification_probdist
nltk.cluster.api.ClusterI.html#classification_probdist
ZopeInterfaceFunction
Method
VISIBLE
Classifies the token into a cluster, returning a probability distribution over the cluster identifiers.
-
nltk.cluster.api.ClusterI.num_clusters
nltk.cluster.api.ClusterI.html#num_clusters
ZopeInterfaceFunction
Method
VISIBLE
Returns the number of clusters.
-
nltk.cluster.api.ClusterI.cluster_names
nltk.cluster.api.ClusterI.html#cluster_names
ZopeInterfaceFunction
Method
VISIBLE
Returns the names of the clusters. :rtype: list
-
nltk.cluster.api.ClusterI.cluster_name
nltk.cluster.api.ClusterI.html#cluster_name
ZopeInterfaceFunction
Method
VISIBLE
Returns the names of the cluster at index.
-
nltk.cluster.util.VectorSpaceClusterer
nltk.cluster.util.VectorSpaceClusterer.html
ZopeInterfaceClass
Class
VISIBLE
Abstract clusterer which takes tokens and maps them into a vector space. Optionally performs singular value decomposition to reduce the dimensionality.
-
nltk.cluster.util.VectorSpaceClusterer.__init__
nltk.cluster.util.VectorSpaceClusterer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.cluster.util.VectorSpaceClusterer._Tt
nltk.cluster.util.VectorSpaceClusterer.html#_Tt
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.util.VectorSpaceClusterer._should_normalise
nltk.cluster.util.VectorSpaceClusterer.html#_should_normalise
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.util.VectorSpaceClusterer._svd_dimensions
nltk.cluster.util.VectorSpaceClusterer.html#_svd_dimensions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.util.VectorSpaceClusterer.cluster
nltk.cluster.util.VectorSpaceClusterer.html#cluster
ZopeInterfaceFunction
Method
VISIBLE
Assigns the vectors to clusters, learning the clustering parameters from the data. Returns a cluster identifier for each vector.
-
nltk.cluster.util.VectorSpaceClusterer.cluster_vectorspace
nltk.cluster.util.VectorSpaceClusterer.html#cluster_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Finds the clusters using the given set of vectors.
-
nltk.cluster.util.VectorSpaceClusterer.classify
nltk.cluster.util.VectorSpaceClusterer.html#classify
ZopeInterfaceFunction
Method
VISIBLE
Classifies the token into a cluster, setting the token's CLUSTER parameter to that cluster identifier.
-
nltk.cluster.util.VectorSpaceClusterer.classify_vectorspace
nltk.cluster.util.VectorSpaceClusterer.html#classify_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Returns the index of the appropriate cluster for the vector.
-
nltk.cluster.util.VectorSpaceClusterer.likelihood
nltk.cluster.util.VectorSpaceClusterer.html#likelihood
ZopeInterfaceFunction
Method
VISIBLE
Returns the likelihood (a float) of the token having the corresponding cluster.
-
nltk.cluster.util.VectorSpaceClusterer.likelihood_vectorspace
nltk.cluster.util.VectorSpaceClusterer.html#likelihood_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Returns the likelihood of the vector belonging to the cluster.
-
nltk.cluster.util.VectorSpaceClusterer.vector
nltk.cluster.util.VectorSpaceClusterer.html#vector
ZopeInterfaceFunction
Method
VISIBLE
Returns the vector after normalisation and dimensionality reduction
-
nltk.cluster.util.VectorSpaceClusterer._normalise
nltk.cluster.util.VectorSpaceClusterer.html#_normalise
ZopeInterfaceFunction
Method
PRIVATE
Normalises the vector to unit length.
-
nltk.cluster.util.euclidean_distance
nltk.cluster.util.html#euclidean_distance
ZopeInterfaceFunction
Function
VISIBLE
Returns the euclidean distance between vectors u and v. This is equivalent to the length of the vector (u - v).
-
nltk.cluster.util.cosine_distance
nltk.cluster.util.html#cosine_distance
ZopeInterfaceFunction
Function
VISIBLE
Returns 1 minus the cosine of the angle between vectors v and u. This is equal to 1 - (u.v / |u||v|).
-
nltk.cluster.util._DendrogramNode
nltk.cluster.util._DendrogramNode.html
ZopeInterfaceClass
Class
PRIVATE
Tree node of a dendrogram.
-
nltk.cluster.util._DendrogramNode.__init__
nltk.cluster.util._DendrogramNode.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.util._DendrogramNode._value
nltk.cluster.util._DendrogramNode.html#_value
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.util._DendrogramNode._children
nltk.cluster.util._DendrogramNode.html#_children
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.util._DendrogramNode.leaves
nltk.cluster.util._DendrogramNode.html#leaves
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.util._DendrogramNode.groups
nltk.cluster.util._DendrogramNode.html#groups
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.util._DendrogramNode.__lt__
nltk.cluster.util._DendrogramNode.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.util.Dendrogram
nltk.cluster.util.Dendrogram.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.cluster.util.Dendrogram.__init__
nltk.cluster.util.Dendrogram.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.cluster.util.Dendrogram._items
nltk.cluster.util.Dendrogram.html#_items
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.util.Dendrogram._original_items
nltk.cluster.util.Dendrogram.html#_original_items
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.util.Dendrogram._merge
nltk.cluster.util.Dendrogram.html#_merge
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.util.Dendrogram.merge
nltk.cluster.util.Dendrogram.html#merge
ZopeInterfaceFunction
Method
VISIBLE
Merges nodes at given indices in the dendrogram. The nodes will be combined which then replaces the first node specified. All other nodes involved in the merge will be removed.
-
nltk.cluster.util.Dendrogram.groups
nltk.cluster.util.Dendrogram.html#groups
ZopeInterfaceFunction
Method
VISIBLE
Finds the n-groups of items (leaves) reachable from a cut at depth n. :param n: number of groups :type n: int
-
nltk.cluster.util.Dendrogram.show
nltk.cluster.util.Dendrogram.html#show
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.cluster.util.Dendrogram.__repr__
nltk.cluster.util.Dendrogram.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer
nltk.cluster.kmeans.KMeansClusterer.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.cluster.kmeans.KMeansClusterer.__init__
nltk.cluster.kmeans.KMeansClusterer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.cluster.kmeans.KMeansClusterer._num_means
nltk.cluster.kmeans.KMeansClusterer.html#_num_means
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer._distance
nltk.cluster.kmeans.KMeansClusterer.html#_distance
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer._max_difference
nltk.cluster.kmeans.KMeansClusterer.html#_max_difference
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer._means
nltk.cluster.kmeans.KMeansClusterer.html#_means
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer._repeats
nltk.cluster.kmeans.KMeansClusterer.html#_repeats
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer._rng
nltk.cluster.kmeans.KMeansClusterer.html#_rng
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer._avoid_empty_clusters
nltk.cluster.kmeans.KMeansClusterer.html#_avoid_empty_clusters
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer.cluster_vectorspace
nltk.cluster.kmeans.KMeansClusterer.html#cluster_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Finds the clusters using the given set of vectors.
-
nltk.cluster.kmeans.KMeansClusterer._cluster_vectorspace
nltk.cluster.kmeans.KMeansClusterer.html#_cluster_vectorspace
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer.classify_vectorspace
nltk.cluster.kmeans.KMeansClusterer.html#classify_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Returns the index of the appropriate cluster for the vector.
-
nltk.cluster.kmeans.KMeansClusterer.num_clusters
nltk.cluster.kmeans.KMeansClusterer.html#num_clusters
ZopeInterfaceFunction
Method
VISIBLE
Returns the number of clusters.
-
nltk.cluster.kmeans.KMeansClusterer.means
nltk.cluster.kmeans.KMeansClusterer.html#means
ZopeInterfaceFunction
Method
VISIBLE
The means used for clustering.
-
nltk.cluster.kmeans.KMeansClusterer._sum_distances
nltk.cluster.kmeans.KMeansClusterer.html#_sum_distances
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer._centroid
nltk.cluster.kmeans.KMeansClusterer.html#_centroid
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.cluster.kmeans.KMeansClusterer.__repr__
nltk.cluster.kmeans.KMeansClusterer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.kmeans.demo
nltk.cluster.kmeans.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.cluster.gaac.GAAClusterer
nltk.cluster.gaac.GAAClusterer.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.cluster.gaac.GAAClusterer.__init__
nltk.cluster.gaac.GAAClusterer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.cluster.gaac.GAAClusterer._num_clusters
nltk.cluster.gaac.GAAClusterer.html#_num_clusters
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.gaac.GAAClusterer._dendrogram
nltk.cluster.gaac.GAAClusterer.html#_dendrogram
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.gaac.GAAClusterer._groups_values
nltk.cluster.gaac.GAAClusterer.html#_groups_values
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.gaac.GAAClusterer.cluster
nltk.cluster.gaac.GAAClusterer.html#cluster
ZopeInterfaceFunction
Method
VISIBLE
Assigns the vectors to clusters, learning the clustering parameters from the data. Returns a cluster identifier for each vector.
-
nltk.cluster.gaac.GAAClusterer.cluster_vectorspace
nltk.cluster.gaac.GAAClusterer.html#cluster_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Finds the clusters using the given set of vectors.
-
nltk.cluster.gaac.GAAClusterer._merge_similarities
nltk.cluster.gaac.GAAClusterer.html#_merge_similarities
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.cluster.gaac.GAAClusterer.update_clusters
nltk.cluster.gaac.GAAClusterer.html#update_clusters
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.gaac.GAAClusterer._centroids
nltk.cluster.gaac.GAAClusterer.html#_centroids
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.gaac.GAAClusterer.classify_vectorspace
nltk.cluster.gaac.GAAClusterer.html#classify_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Returns the index of the appropriate cluster for the vector.
-
nltk.cluster.gaac.GAAClusterer.dendrogram
nltk.cluster.gaac.GAAClusterer.html#dendrogram
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.cluster.gaac.GAAClusterer.num_clusters
nltk.cluster.gaac.GAAClusterer.html#num_clusters
ZopeInterfaceFunction
Method
VISIBLE
Returns the number of clusters.
-
nltk.cluster.gaac.GAAClusterer.__repr__
nltk.cluster.gaac.GAAClusterer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.gaac.demo
nltk.cluster.gaac.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Non-interactive demonstration of the clusterers with simple 2-D data.
-
nltk.cluster.em.EMClusterer
nltk.cluster.em.EMClusterer.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.cluster.em.EMClusterer.__init__
nltk.cluster.em.EMClusterer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Creates an EM clusterer with the given starting parameters, convergence threshold and vector mangling parameters.
-
nltk.cluster.em.EMClusterer._means
nltk.cluster.em.EMClusterer.html#_means
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.em.EMClusterer._num_clusters
nltk.cluster.em.EMClusterer.html#_num_clusters
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.em.EMClusterer._conv_threshold
nltk.cluster.em.EMClusterer.html#_conv_threshold
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.em.EMClusterer._covariance_matrices
nltk.cluster.em.EMClusterer.html#_covariance_matrices
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.em.EMClusterer._priors
nltk.cluster.em.EMClusterer.html#_priors
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.em.EMClusterer._bias
nltk.cluster.em.EMClusterer.html#_bias
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.cluster.em.EMClusterer.num_clusters
nltk.cluster.em.EMClusterer.html#num_clusters
ZopeInterfaceFunction
Method
VISIBLE
Returns the number of clusters.
-
nltk.cluster.em.EMClusterer.cluster_vectorspace
nltk.cluster.em.EMClusterer.html#cluster_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Finds the clusters using the given set of vectors.
-
nltk.cluster.em.EMClusterer.classify_vectorspace
nltk.cluster.em.EMClusterer.html#classify_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Returns the index of the appropriate cluster for the vector.
-
nltk.cluster.em.EMClusterer.likelihood_vectorspace
nltk.cluster.em.EMClusterer.html#likelihood_vectorspace
ZopeInterfaceFunction
Method
VISIBLE
Returns the likelihood of the vector belonging to the cluster.
-
nltk.cluster.em.EMClusterer._gaussian
nltk.cluster.em.EMClusterer.html#_gaussian
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.cluster.em.EMClusterer._loglikelihood
nltk.cluster.em.EMClusterer.html#_loglikelihood
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.cluster.em.EMClusterer.__repr__
nltk.cluster.em.EMClusterer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.cluster.em.demo
nltk.cluster.em.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Non-interactive demonstration of the clusterers with simple 2-D data.
-
nltk.downloader.TKINTER
nltk.downloader.html#TKINTER
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.downloader.Package
nltk.downloader.Package.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.downloader.Package.__init__
nltk.downloader.Package.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Package.id
nltk.downloader.Package.html#id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A unique identifier for this package.
-
nltk.downloader.Package.name
nltk.downloader.Package.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A string name for this package.
-
nltk.downloader.Package.subdir
nltk.downloader.Package.html#subdir
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The subdirectory where this package should be installed. E.g., 'corpora' or 'taggers'.
-
nltk.downloader.Package.url
nltk.downloader.Package.html#url
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A URL that can be used to download this package's file.
-
nltk.downloader.Package.size
nltk.downloader.Package.html#size
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The filesize (in bytes) of the package file.
-
nltk.downloader.Package.unzipped_size
nltk.downloader.Package.html#unzipped_size
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The total filesize of the files contained in the package's zipfile.
-
nltk.downloader.Package.checksum
nltk.downloader.Package.html#checksum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The MD-5 checksum of the package file.
-
nltk.downloader.Package.svn_revision
nltk.downloader.Package.html#svn_revision
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A subversion revision number for this package.
-
nltk.downloader.Package.copyright
nltk.downloader.Package.html#copyright
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Copyright holder for this package.
-
nltk.downloader.Package.contact
nltk.downloader.Package.html#contact
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Name & email of the person who should be contacted with questions about this package.
-
nltk.downloader.Package.license
nltk.downloader.Package.html#license
ZopeInterfaceAttribute
Instance Variable
VISIBLE
License information for this package.
-
nltk.downloader.Package.author
nltk.downloader.Package.html#author
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Author of this package.
-
nltk.downloader.Package.filename
nltk.downloader.Package.html#filename
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The filename that should be used for this package's file. It is formed by joining self.subdir with self.id, and using the same extension as url.
-
nltk.downloader.Package.unzip
nltk.downloader.Package.html#unzip
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A flag indicating whether this corpus should be unzipped by default.
-
nltk.downloader.Package.fromxml
nltk.downloader.Package.html#fromxml
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.downloader.Package.__lt__
nltk.downloader.Package.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Package.__repr__
nltk.downloader.Package.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Collection
nltk.downloader.Collection.html
ZopeInterfaceClass
Class
VISIBLE
A directory entry for a collection of downloadable packages. These entries are extracted from the XML index file that is downloaded by Downloader.
-
nltk.downloader.Collection.__init__
nltk.downloader.Collection.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Collection.id
nltk.downloader.Collection.html#id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A unique identifier for this collection.
-
nltk.downloader.Collection.name
nltk.downloader.Collection.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A string name for this collection.
-
nltk.downloader.Collection.children
nltk.downloader.Collection.html#children
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A list of the Collections or Packages directly contained by this collection.
-
nltk.downloader.Collection.packages
nltk.downloader.Collection.html#packages
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A list of Packages contained by this collection or any collections it recursively contains.
-
nltk.downloader.Collection.fromxml
nltk.downloader.Collection.html#fromxml
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.downloader.Collection.__lt__
nltk.downloader.Collection.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Collection.__repr__
nltk.downloader.Collection.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderMessage
nltk.downloader.DownloaderMessage.html
ZopeInterfaceClass
Class
VISIBLE
A status message object, used by incr_download to communicate its progress.
-
nltk.downloader.StartCollectionMessage
nltk.downloader.StartCollectionMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server has started working on a collection of packages.
-
nltk.downloader.StartCollectionMessage.__init__
nltk.downloader.StartCollectionMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.StartCollectionMessage.collection
nltk.downloader.StartCollectionMessage.html#collection
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.FinishCollectionMessage
nltk.downloader.FinishCollectionMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server has finished working on a collection of packages.
-
nltk.downloader.FinishCollectionMessage.__init__
nltk.downloader.FinishCollectionMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.FinishCollectionMessage.collection
nltk.downloader.FinishCollectionMessage.html#collection
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.StartPackageMessage
nltk.downloader.StartPackageMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server has started working on a package.
-
nltk.downloader.StartPackageMessage.__init__
nltk.downloader.StartPackageMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.StartPackageMessage.package
nltk.downloader.StartPackageMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.FinishPackageMessage
nltk.downloader.FinishPackageMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server has finished working on a package.
-
nltk.downloader.FinishPackageMessage.__init__
nltk.downloader.FinishPackageMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.FinishPackageMessage.package
nltk.downloader.FinishPackageMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.StartDownloadMessage
nltk.downloader.StartDownloadMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server has started downloading a package.
-
nltk.downloader.StartDownloadMessage.__init__
nltk.downloader.StartDownloadMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.StartDownloadMessage.package
nltk.downloader.StartDownloadMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.FinishDownloadMessage
nltk.downloader.FinishDownloadMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server has finished downloading a package.
-
nltk.downloader.FinishDownloadMessage.__init__
nltk.downloader.FinishDownloadMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.FinishDownloadMessage.package
nltk.downloader.FinishDownloadMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.StartUnzipMessage
nltk.downloader.StartUnzipMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server has started unzipping a package.
-
nltk.downloader.StartUnzipMessage.__init__
nltk.downloader.StartUnzipMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.StartUnzipMessage.package
nltk.downloader.StartUnzipMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.FinishUnzipMessage
nltk.downloader.FinishUnzipMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server has finished unzipping a package.
-
nltk.downloader.FinishUnzipMessage.__init__
nltk.downloader.FinishUnzipMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.FinishUnzipMessage.package
nltk.downloader.FinishUnzipMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.UpToDateMessage
nltk.downloader.UpToDateMessage.html
ZopeInterfaceClass
Class
VISIBLE
The package download file is already up-to-date
-
nltk.downloader.UpToDateMessage.__init__
nltk.downloader.UpToDateMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.UpToDateMessage.package
nltk.downloader.UpToDateMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.StaleMessage
nltk.downloader.StaleMessage.html
ZopeInterfaceClass
Class
VISIBLE
The package download file is out-of-date or corrupt
-
nltk.downloader.StaleMessage.__init__
nltk.downloader.StaleMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.StaleMessage.package
nltk.downloader.StaleMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.ErrorMessage
nltk.downloader.ErrorMessage.html
ZopeInterfaceClass
Class
VISIBLE
Data server encountered an error
-
nltk.downloader.ErrorMessage.__init__
nltk.downloader.ErrorMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.ErrorMessage.package
nltk.downloader.ErrorMessage.html#package
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.ErrorMessage.message
nltk.downloader.ErrorMessage.html#message
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.ProgressMessage
nltk.downloader.ProgressMessage.html
ZopeInterfaceClass
Class
VISIBLE
Indicates how much progress the data server has made
-
nltk.downloader.ProgressMessage.__init__
nltk.downloader.ProgressMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.ProgressMessage.progress
nltk.downloader.ProgressMessage.html#progress
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.SelectDownloadDirMessage
nltk.downloader.SelectDownloadDirMessage.html
ZopeInterfaceClass
Class
VISIBLE
Indicates what download directory the data server is using
-
nltk.downloader.SelectDownloadDirMessage.__init__
nltk.downloader.SelectDownloadDirMessage.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.SelectDownloadDirMessage.download_dir
nltk.downloader.SelectDownloadDirMessage.html#download_dir
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.Downloader
nltk.downloader.Downloader.html
ZopeInterfaceClass
Class
VISIBLE
A class used to access the NLTK data server, which can be used to download corpora and other data packages.
-
nltk.downloader.Downloader.INDEX_TIMEOUT
nltk.downloader.Downloader.html#INDEX_TIMEOUT
ZopeInterfaceAttribute
Class Variable
VISIBLE
The amount of time after which the cached copy of the data server index will be considered 'stale,' and will be re-downloaded.
-
nltk.downloader.Downloader.DEFAULT_URL
nltk.downloader.Downloader.html#DEFAULT_URL
ZopeInterfaceAttribute
Class Variable
VISIBLE
The default URL for the NLTK data server's index. An alternative URL can be specified when creating a new Downloader object.
-
nltk.downloader.Downloader.INSTALLED
nltk.downloader.Downloader.html#INSTALLED
ZopeInterfaceAttribute
Class Variable
VISIBLE
A status string indicating that a package or collection is installed and up-to-date.
-
nltk.downloader.Downloader.NOT_INSTALLED
nltk.downloader.Downloader.html#NOT_INSTALLED
ZopeInterfaceAttribute
Class Variable
VISIBLE
A status string indicating that a package or collection is not installed.
-
nltk.downloader.Downloader.STALE
nltk.downloader.Downloader.html#STALE
ZopeInterfaceAttribute
Class Variable
VISIBLE
A status string indicating that a package or collection is corrupt or out-of-date.
-
nltk.downloader.Downloader.PARTIAL
nltk.downloader.Downloader.html#PARTIAL
ZopeInterfaceAttribute
Class Variable
VISIBLE
A status string indicating that a collection is partially installed (i.e., only some of its packages are installed.)
-
nltk.downloader.Downloader.__init__
nltk.downloader.Downloader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader._url
nltk.downloader.Downloader.html#_url
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The URL for the data server's index file.
-
nltk.downloader.Downloader._collections
nltk.downloader.Downloader.html#_collections
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Dictionary from collection identifier to Collection
-
nltk.downloader.Downloader._packages
nltk.downloader.Downloader.html#_packages
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Dictionary from package identifier to Package
-
nltk.downloader.Downloader._download_dir
nltk.downloader.Downloader.html#_download_dir
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The default directory to which packages will be downloaded.
-
nltk.downloader.Downloader._index
nltk.downloader.Downloader.html#_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The XML index file downloaded from the data server
-
nltk.downloader.Downloader._index_timestamp
nltk.downloader.Downloader.html#_index_timestamp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Time at which self._index was downloaded. If it is more than INDEX_TIMEOUT seconds old, it will be re-downloaded.
-
nltk.downloader.Downloader._status_cache
nltk.downloader.Downloader.html#_status_cache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.downloader.Downloader._errors
nltk.downloader.Downloader.html#_errors
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Flag for telling if all packages got successfully downloaded or not.
-
nltk.downloader.Downloader.list
nltk.downloader.Downloader.html#list
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader.packages
nltk.downloader.Downloader.html#packages
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader.corpora
nltk.downloader.Downloader.html#corpora
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader.models
nltk.downloader.Downloader.html#models
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader.collections
nltk.downloader.Downloader.html#collections
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader._info_or_id
nltk.downloader.Downloader.html#_info_or_id
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.Downloader.incr_download
nltk.downloader.Downloader.html#incr_download
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader._num_packages
nltk.downloader.Downloader.html#_num_packages
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.Downloader._download_list
nltk.downloader.Downloader.html#_download_list
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.Downloader._download_package
nltk.downloader.Downloader.html#_download_package
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.Downloader.download
nltk.downloader.Downloader.html#download
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader.is_stale
nltk.downloader.Downloader.html#is_stale
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader.is_installed
nltk.downloader.Downloader.html#is_installed
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader.clear_status_cache
nltk.downloader.Downloader.html#clear_status_cache
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.Downloader.status
nltk.downloader.Downloader.html#status
ZopeInterfaceFunction
Method
VISIBLE
Return a constant describing the status of the given package or collection. Status can be one of INSTALLED, NOT_INSTALLED, STALE, or PARTIAL.
-
nltk.downloader.Downloader._pkg_status
nltk.downloader.Downloader.html#_pkg_status
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.Downloader.update
nltk.downloader.Downloader.html#update
ZopeInterfaceFunction
Method
VISIBLE
Re-download any packages whose status is STALE.
-
nltk.downloader.Downloader._update_index
nltk.downloader.Downloader.html#_update_index
ZopeInterfaceFunction
Method
PRIVATE
A helper function that ensures that self._index is up-to-date. If the index is older than self.INDEX_TIMEOUT, then download it again.
-
nltk.downloader.Downloader.index
nltk.downloader.Downloader.html#index
ZopeInterfaceFunction
Method
VISIBLE
Return the XML index describing the packages available from the data server. If necessary, this index will be downloaded from the data server.
-
nltk.downloader.Downloader.info
nltk.downloader.Downloader.html#info
ZopeInterfaceFunction
Method
VISIBLE
Return the Package or Collection record for the given item.
-
nltk.downloader.Downloader.xmlinfo
nltk.downloader.Downloader.html#xmlinfo
ZopeInterfaceFunction
Method
VISIBLE
Return the XML info record for the given item
-
nltk.downloader.Downloader._get_url
nltk.downloader.Downloader.html#_get_url
ZopeInterfaceFunction
Method
PRIVATE
The URL for the data server's index file.
-
nltk.downloader.Downloader._set_url
nltk.downloader.Downloader.html#_set_url
ZopeInterfaceFunction
Method
PRIVATE
Set a new URL for the data server. If we're unable to contact the given url, then the original url is kept.
-
nltk.downloader.Downloader.url
nltk.downloader.Downloader.html#url
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.downloader.Downloader.default_download_dir
nltk.downloader.Downloader.html#default_download_dir
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.downloader.Downloader._get_download_dir
nltk.downloader.Downloader.html#_get_download_dir
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.downloader.Downloader._set_download_dir
nltk.downloader.Downloader.html#_set_download_dir
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.Downloader.download_dir
nltk.downloader.Downloader.html#download_dir
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.downloader.Downloader._interactive_download
nltk.downloader.Downloader.html#_interactive_download
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderShell
nltk.downloader.DownloaderShell.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.downloader.DownloaderShell.__init__
nltk.downloader.DownloaderShell.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderShell._ds
nltk.downloader.DownloaderShell.html#_ds
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderShell.run
nltk.downloader.DownloaderShell.html#run
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderShell._simple_interactive_download
nltk.downloader.DownloaderShell.html#_simple_interactive_download
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderShell._simple_interactive_update
nltk.downloader.DownloaderShell.html#_simple_interactive_update
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderShell._simple_interactive_help
nltk.downloader.DownloaderShell.html#_simple_interactive_help
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderShell._show_config
nltk.downloader.DownloaderShell.html#_show_config
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderShell._simple_interactive_config
nltk.downloader.DownloaderShell.html#_simple_interactive_config
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI
nltk.downloader.DownloaderGUI.html
ZopeInterfaceClass
Class
VISIBLE
Graphical interface for downloading packages from the NLTK data server.
-
nltk.downloader.DownloaderGUI.COLUMNS
nltk.downloader.DownloaderGUI.html#COLUMNS
ZopeInterfaceAttribute
Class Variable
VISIBLE
A list of the names of columns. This controls the order in which the columns will appear. If this is edited, then _package_to_columns() may need to be edited to match.
-
nltk.downloader.DownloaderGUI.COLUMN_WEIGHTS
nltk.downloader.DownloaderGUI.html#COLUMN_WEIGHTS
ZopeInterfaceAttribute
Class Variable
VISIBLE
No summary
-
nltk.downloader.DownloaderGUI.COLUMN_WIDTHS
nltk.downloader.DownloaderGUI.html#COLUMN_WIDTHS
ZopeInterfaceAttribute
Class Variable
VISIBLE
A dictionary specifying how wide each column should be, in characters. The default width (for columns not explicitly listed) is specified by DEFAULT_COLUMN_WIDTH.
-
nltk.downloader.DownloaderGUI.DEFAULT_COLUMN_WIDTH
nltk.downloader.DownloaderGUI.html#DEFAULT_COLUMN_WIDTH
ZopeInterfaceAttribute
Class Variable
VISIBLE
The default width for columns that are not explicitly listed in COLUMN_WIDTHS.
-
nltk.downloader.DownloaderGUI.INITIAL_COLUMNS
nltk.downloader.DownloaderGUI.html#INITIAL_COLUMNS
ZopeInterfaceAttribute
Class Variable
VISIBLE
The set of columns that should be displayed by default.
-
nltk.downloader.DownloaderGUI._BACKDROP_COLOR
nltk.downloader.DownloaderGUI.html#_BACKDROP_COLOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._ROW_COLOR
nltk.downloader.DownloaderGUI.html#_ROW_COLOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._MARK_COLOR
nltk.downloader.DownloaderGUI.html#_MARK_COLOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._FRONT_TAB_COLOR
nltk.downloader.DownloaderGUI.html#_FRONT_TAB_COLOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._BACK_TAB_COLOR
nltk.downloader.DownloaderGUI.html#_BACK_TAB_COLOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._PROGRESS_COLOR
nltk.downloader.DownloaderGUI.html#_PROGRESS_COLOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._TAB_FONT
nltk.downloader.DownloaderGUI.html#_TAB_FONT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI.__init__
nltk.downloader.DownloaderGUI.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._ds
nltk.downloader.DownloaderGUI.html#_ds
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._use_threads
nltk.downloader.DownloaderGUI.html#_use_threads
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._download_lock
nltk.downloader.DownloaderGUI.html#_download_lock
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._download_msg_queue
nltk.downloader.DownloaderGUI.html#_download_msg_queue
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._download_abort_queue
nltk.downloader.DownloaderGUI.html#_download_abort_queue
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._downloading
nltk.downloader.DownloaderGUI.html#_downloading
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._afterid
nltk.downloader.DownloaderGUI.html#_afterid
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._log_messages
nltk.downloader.DownloaderGUI.html#_log_messages
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._log_indent
nltk.downloader.DownloaderGUI.html#_log_indent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI.top
nltk.downloader.DownloaderGUI.html#top
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._destroyed
nltk.downloader.DownloaderGUI.html#_destroyed
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._column_vars
nltk.downloader.DownloaderGUI.html#_column_vars
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._log
nltk.downloader.DownloaderGUI.html#_log
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._init_widgets
nltk.downloader.DownloaderGUI.html#_init_widgets
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._tab_names
nltk.downloader.DownloaderGUI.html#_tab_names
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._tabs
nltk.downloader.DownloaderGUI.html#_tabs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._table
nltk.downloader.DownloaderGUI.html#_table
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._info
nltk.downloader.DownloaderGUI.html#_info
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._download_button
nltk.downloader.DownloaderGUI.html#_download_button
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._refresh_button
nltk.downloader.DownloaderGUI.html#_refresh_button
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._progresslabel
nltk.downloader.DownloaderGUI.html#_progresslabel
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._progressbar
nltk.downloader.DownloaderGUI.html#_progressbar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._select_columns
nltk.downloader.DownloaderGUI.html#_select_columns
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._refresh
nltk.downloader.DownloaderGUI.html#_refresh
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._info_edit
nltk.downloader.DownloaderGUI.html#_info_edit
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._info_save
nltk.downloader.DownloaderGUI.html#_info_save
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._table_reprfunc
nltk.downloader.DownloaderGUI.html#_table_reprfunc
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._set_url
nltk.downloader.DownloaderGUI.html#_set_url
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._set_download_dir
nltk.downloader.DownloaderGUI.html#_set_download_dir
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._show_info
nltk.downloader.DownloaderGUI.html#_show_info
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._prev_tab
nltk.downloader.DownloaderGUI.html#_prev_tab
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._tab
nltk.downloader.DownloaderGUI.html#_tab
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._next_tab
nltk.downloader.DownloaderGUI.html#_next_tab
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._select_tab
nltk.downloader.DownloaderGUI.html#_select_tab
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._rows
nltk.downloader.DownloaderGUI.html#_rows
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._fill_table
nltk.downloader.DownloaderGUI.html#_fill_table
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._update_table_status
nltk.downloader.DownloaderGUI.html#_update_table_status
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._download
nltk.downloader.DownloaderGUI.html#_download
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._DL_DELAY
nltk.downloader.DownloaderGUI.html#_DL_DELAY
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._download_cb
nltk.downloader.DownloaderGUI.html#_download_cb
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._select
nltk.downloader.DownloaderGUI.html#_select
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._color_table
nltk.downloader.DownloaderGUI.html#_color_table
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._clear_mark
nltk.downloader.DownloaderGUI.html#_clear_mark
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._mark_all
nltk.downloader.DownloaderGUI.html#_mark_all
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._table_mark
nltk.downloader.DownloaderGUI.html#_table_mark
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._show_log
nltk.downloader.DownloaderGUI.html#_show_log
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._package_to_columns
nltk.downloader.DownloaderGUI.html#_package_to_columns
ZopeInterfaceFunction
Method
PRIVATE
Given a package, return a list of values describing that package, one for each column in self.COLUMNS.
-
nltk.downloader.DownloaderGUI.destroy
nltk.downloader.DownloaderGUI.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._destroy
nltk.downloader.DownloaderGUI.html#_destroy
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI.mainloop
nltk.downloader.DownloaderGUI.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI.HELP
nltk.downloader.DownloaderGUI.html#HELP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI.help
nltk.downloader.DownloaderGUI.html#help
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI.about
nltk.downloader.DownloaderGUI.html#about
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._gradient_width
nltk.downloader.DownloaderGUI.html#_gradient_width
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._init_progressbar
nltk.downloader.DownloaderGUI.html#_init_progressbar
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._show_progress
nltk.downloader.DownloaderGUI.html#_show_progress
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._progress_alive
nltk.downloader.DownloaderGUI.html#_progress_alive
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._download_threaded
nltk.downloader.DownloaderGUI.html#_download_threaded
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._abort_download
nltk.downloader.DownloaderGUI.html#_abort_download
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._DownloadThread
nltk.downloader.DownloaderGUI._DownloadThread.html
ZopeInterfaceClass
Class
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._DownloadThread.__init__
nltk.downloader.DownloaderGUI._DownloadThread.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._DownloadThread.data_server
nltk.downloader.DownloaderGUI._DownloadThread.html#data_server
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._DownloadThread.items
nltk.downloader.DownloaderGUI._DownloadThread.html#items
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._DownloadThread.lock
nltk.downloader.DownloaderGUI._DownloadThread.html#lock
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._DownloadThread.message_queue
nltk.downloader.DownloaderGUI._DownloadThread.html#message_queue
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._DownloadThread.abort
nltk.downloader.DownloaderGUI._DownloadThread.html#abort
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._DownloadThread.run
nltk.downloader.DownloaderGUI._DownloadThread.html#run
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.downloader.DownloaderGUI._MONITOR_QUEUE_DELAY
nltk.downloader.DownloaderGUI.html#_MONITOR_QUEUE_DELAY
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.downloader.DownloaderGUI._monitor_message_queue
nltk.downloader.DownloaderGUI.html#_monitor_message_queue
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.downloader.md5_hexdigest
nltk.downloader.html#md5_hexdigest
ZopeInterfaceFunction
Function
VISIBLE
Calculate and return the MD5 checksum for a given file. file may either be a filename or an open stream.
-
nltk.downloader._md5_hexdigest
nltk.downloader.html#_md5_hexdigest
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.downloader.unzip
nltk.downloader.html#unzip
ZopeInterfaceFunction
Function
VISIBLE
Extract the contents of the zip file filename into the directory root.
-
nltk.downloader._unzip_iter
nltk.downloader.html#_unzip_iter
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.downloader.build_index
nltk.downloader.html#build_index
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.downloader._indent_xml
nltk.downloader.html#_indent_xml
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.downloader._check_package
nltk.downloader.html#_check_package
ZopeInterfaceFunction
Function
PRIVATE
Helper for build_index(): Perform some checks to make sure that the given package is consistent.
-
nltk.downloader._svn_revision
nltk.downloader.html#_svn_revision
ZopeInterfaceFunction
Function
PRIVATE
Helper for build_index(): Calculate the subversion revision number for a given file (by using subprocess to run svn).
-
nltk.downloader._find_collections
nltk.downloader.html#_find_collections
ZopeInterfaceFunction
Function
PRIVATE
Helper for build_index(): Yield a list of ElementTree.Element objects, each holding the xml for a single package collection.
-
nltk.downloader._find_packages
nltk.downloader.html#_find_packages
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.downloader._downloader
nltk.downloader.html#_downloader
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.downloader.download_shell
nltk.downloader.html#download_shell
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.downloader.download_gui
nltk.downloader.html#download_gui
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.downloader.update
nltk.downloader.html#update
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.downloader.parser
nltk.downloader.html#parser
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.downloader.options
nltk.downloader.html#options
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.downloader.args
nltk.downloader.html#args
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.downloader.downloader
nltk.downloader.html#downloader
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.downloader.rv
nltk.downloader.html#rv
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.api.AbstractCCGCategory
nltk.ccg.api.AbstractCCGCategory.html
ZopeInterfaceClass
Class
VISIBLE
Interface for categories in combinatory grammars.
-
nltk.ccg.api.AbstractCCGCategory.is_primitive
nltk.ccg.api.AbstractCCGCategory.html#is_primitive
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is primitive.
-
nltk.ccg.api.AbstractCCGCategory.is_function
nltk.ccg.api.AbstractCCGCategory.html#is_function
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is a function application.
-
nltk.ccg.api.AbstractCCGCategory.is_var
nltk.ccg.api.AbstractCCGCategory.html#is_var
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is a variable.
-
nltk.ccg.api.AbstractCCGCategory.substitute
nltk.ccg.api.AbstractCCGCategory.html#substitute
ZopeInterfaceFunction
Method
VISIBLE
Takes a set of (var, category) substitutions, and replaces every occurrence of the variable with the corresponding category.
-
nltk.ccg.api.AbstractCCGCategory.can_unify
nltk.ccg.api.AbstractCCGCategory.html#can_unify
ZopeInterfaceFunction
Method
VISIBLE
Determines whether two categories can be unified. - Returns None if they cannot be unified - Returns a list of necessary substitutions if they can.
-
nltk.ccg.api.AbstractCCGCategory.__str__
nltk.ccg.api.AbstractCCGCategory.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.AbstractCCGCategory.__eq__
nltk.ccg.api.AbstractCCGCategory.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.AbstractCCGCategory.__ne__
nltk.ccg.api.AbstractCCGCategory.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.AbstractCCGCategory.__lt__
nltk.ccg.api.AbstractCCGCategory.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.AbstractCCGCategory.__hash__
nltk.ccg.api.AbstractCCGCategory.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.AbstractCCGCategory._hash
nltk.ccg.api.AbstractCCGCategory.html#_hash
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.CCGVar
nltk.ccg.api.CCGVar.html
ZopeInterfaceClass
Class
VISIBLE
Class representing a variable CCG category. Used for conjunctions (and possibly type-raising, if implemented as a unary rule).
-
nltk.ccg.api.CCGVar._maxID
nltk.ccg.api.CCGVar.html#_maxID
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.ccg.api.CCGVar.__init__
nltk.ccg.api.CCGVar.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize a variable (selects a new identifier)
-
nltk.ccg.api.CCGVar._id
nltk.ccg.api.CCGVar.html#_id
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.CCGVar._prim_only
nltk.ccg.api.CCGVar.html#_prim_only
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.CCGVar._comparison_key
nltk.ccg.api.CCGVar.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.CCGVar.new_id
nltk.ccg.api.CCGVar.html#new_id
ZopeInterfaceFunction
Class Method
VISIBLE
A class method allowing generation of unique variable identifiers.
-
nltk.ccg.api.CCGVar.reset_id
nltk.ccg.api.CCGVar.html#reset_id
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.ccg.api.CCGVar.is_primitive
nltk.ccg.api.CCGVar.html#is_primitive
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is primitive.
-
nltk.ccg.api.CCGVar.is_function
nltk.ccg.api.CCGVar.html#is_function
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is a function application.
-
nltk.ccg.api.CCGVar.is_var
nltk.ccg.api.CCGVar.html#is_var
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is a variable.
-
nltk.ccg.api.CCGVar.substitute
nltk.ccg.api.CCGVar.html#substitute
ZopeInterfaceFunction
Method
VISIBLE
If there is a substitution corresponding to this variable, return the substituted category.
-
nltk.ccg.api.CCGVar.can_unify
nltk.ccg.api.CCGVar.html#can_unify
ZopeInterfaceFunction
Method
VISIBLE
If the variable can be replaced with other a substitution is returned.
-
nltk.ccg.api.CCGVar.id
nltk.ccg.api.CCGVar.html#id
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.CCGVar.__str__
nltk.ccg.api.CCGVar.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction
nltk.ccg.api.Direction.html
ZopeInterfaceClass
Class
VISIBLE
Class representing the direction of a function application. Also contains maintains information as to which combinators may be used with the category.
-
nltk.ccg.api.Direction.__init__
nltk.ccg.api.Direction.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction._dir
nltk.ccg.api.Direction.html#_dir
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.Direction._restrs
nltk.ccg.api.Direction.html#_restrs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.Direction._comparison_key
nltk.ccg.api.Direction.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.Direction.is_forward
nltk.ccg.api.Direction.html#is_forward
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.is_backward
nltk.ccg.api.Direction.html#is_backward
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.dir
nltk.ccg.api.Direction.html#dir
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.restrs
nltk.ccg.api.Direction.html#restrs
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.ccg.api.Direction.is_variable
nltk.ccg.api.Direction.html#is_variable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.can_unify
nltk.ccg.api.Direction.html#can_unify
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.substitute
nltk.ccg.api.Direction.html#substitute
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.can_compose
nltk.ccg.api.Direction.html#can_compose
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.can_cross
nltk.ccg.api.Direction.html#can_cross
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.__eq__
nltk.ccg.api.Direction.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.__ne__
nltk.ccg.api.Direction.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.__lt__
nltk.ccg.api.Direction.html#__lt__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.__hash__
nltk.ccg.api.Direction.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction._hash
nltk.ccg.api.Direction.html#_hash
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.Direction.__str__
nltk.ccg.api.Direction.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.Direction.__neg__
nltk.ccg.api.Direction.html#__neg__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.PrimitiveCategory
nltk.ccg.api.PrimitiveCategory.html
ZopeInterfaceClass
Class
VISIBLE
Class representing primitive categories. Takes a string representation of the category, and a list of strings specifying the morphological subcategories.
-
nltk.ccg.api.PrimitiveCategory.__init__
nltk.ccg.api.PrimitiveCategory.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.PrimitiveCategory._categ
nltk.ccg.api.PrimitiveCategory.html#_categ
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.PrimitiveCategory._restrs
nltk.ccg.api.PrimitiveCategory.html#_restrs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.PrimitiveCategory._comparison_key
nltk.ccg.api.PrimitiveCategory.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.PrimitiveCategory.is_primitive
nltk.ccg.api.PrimitiveCategory.html#is_primitive
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is primitive.
-
nltk.ccg.api.PrimitiveCategory.is_function
nltk.ccg.api.PrimitiveCategory.html#is_function
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is a function application.
-
nltk.ccg.api.PrimitiveCategory.is_var
nltk.ccg.api.PrimitiveCategory.html#is_var
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is a variable.
-
nltk.ccg.api.PrimitiveCategory.restrs
nltk.ccg.api.PrimitiveCategory.html#restrs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.PrimitiveCategory.categ
nltk.ccg.api.PrimitiveCategory.html#categ
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.PrimitiveCategory.substitute
nltk.ccg.api.PrimitiveCategory.html#substitute
ZopeInterfaceFunction
Method
VISIBLE
Takes a set of (var, category) substitutions, and replaces every occurrence of the variable with the corresponding category.
-
nltk.ccg.api.PrimitiveCategory.can_unify
nltk.ccg.api.PrimitiveCategory.html#can_unify
ZopeInterfaceFunction
Method
VISIBLE
Determines whether two categories can be unified. - Returns None if they cannot be unified - Returns a list of necessary substitutions if they can.
-
nltk.ccg.api.PrimitiveCategory.__str__
nltk.ccg.api.PrimitiveCategory.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.FunctionalCategory
nltk.ccg.api.FunctionalCategory.html
ZopeInterfaceClass
Class
VISIBLE
Class that represents a function application category. Consists of argument and result categories, together with an application direction.
-
nltk.ccg.api.FunctionalCategory.__init__
nltk.ccg.api.FunctionalCategory.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.FunctionalCategory._res
nltk.ccg.api.FunctionalCategory.html#_res
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.FunctionalCategory._arg
nltk.ccg.api.FunctionalCategory.html#_arg
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.FunctionalCategory._dir
nltk.ccg.api.FunctionalCategory.html#_dir
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.FunctionalCategory._comparison_key
nltk.ccg.api.FunctionalCategory.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.api.FunctionalCategory.is_primitive
nltk.ccg.api.FunctionalCategory.html#is_primitive
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is primitive.
-
nltk.ccg.api.FunctionalCategory.is_function
nltk.ccg.api.FunctionalCategory.html#is_function
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is a function application.
-
nltk.ccg.api.FunctionalCategory.is_var
nltk.ccg.api.FunctionalCategory.html#is_var
ZopeInterfaceFunction
Method
VISIBLE
Returns true if the category is a variable.
-
nltk.ccg.api.FunctionalCategory.substitute
nltk.ccg.api.FunctionalCategory.html#substitute
ZopeInterfaceFunction
Method
VISIBLE
Takes a set of (var, category) substitutions, and replaces every occurrence of the variable with the corresponding category.
-
nltk.ccg.api.FunctionalCategory.can_unify
nltk.ccg.api.FunctionalCategory.html#can_unify
ZopeInterfaceFunction
Method
VISIBLE
Determines whether two categories can be unified. - Returns None if they cannot be unified - Returns a list of necessary substitutions if they can.
-
nltk.ccg.api.FunctionalCategory.arg
nltk.ccg.api.FunctionalCategory.html#arg
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.FunctionalCategory.res
nltk.ccg.api.FunctionalCategory.html#res
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.FunctionalCategory.dir
nltk.ccg.api.FunctionalCategory.html#dir
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.api.FunctionalCategory.__str__
nltk.ccg.api.FunctionalCategory.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedBinaryCombinator
nltk.ccg.combinator.UndirectedBinaryCombinator.html
ZopeInterfaceClass
Class
VISIBLE
Abstract class for representing a binary combinator. Merely defines functions for checking if the function and argument are able to be combined, and what the resulting category is.
-
nltk.ccg.combinator.UndirectedBinaryCombinator.can_combine
nltk.ccg.combinator.UndirectedBinaryCombinator.html#can_combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedBinaryCombinator.combine
nltk.ccg.combinator.UndirectedBinaryCombinator.html#combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.DirectedBinaryCombinator
nltk.ccg.combinator.DirectedBinaryCombinator.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.ccg.combinator.DirectedBinaryCombinator.can_combine
nltk.ccg.combinator.DirectedBinaryCombinator.html#can_combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.DirectedBinaryCombinator.combine
nltk.ccg.combinator.DirectedBinaryCombinator.html#combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.ForwardCombinator
nltk.ccg.combinator.ForwardCombinator.html
ZopeInterfaceClass
Class
VISIBLE
Class representing combinators where the primary functor is on the left.
-
nltk.ccg.combinator.ForwardCombinator.__init__
nltk.ccg.combinator.ForwardCombinator.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.ForwardCombinator._combinator
nltk.ccg.combinator.ForwardCombinator.html#_combinator
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.combinator.ForwardCombinator._predicate
nltk.ccg.combinator.ForwardCombinator.html#_predicate
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.combinator.ForwardCombinator._suffix
nltk.ccg.combinator.ForwardCombinator.html#_suffix
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.combinator.ForwardCombinator.can_combine
nltk.ccg.combinator.ForwardCombinator.html#can_combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.ForwardCombinator.combine
nltk.ccg.combinator.ForwardCombinator.html#combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.ForwardCombinator.__str__
nltk.ccg.combinator.ForwardCombinator.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardCombinator
nltk.ccg.combinator.BackwardCombinator.html
ZopeInterfaceClass
Class
VISIBLE
The backward equivalent of the ForwardCombinator class.
-
nltk.ccg.combinator.BackwardCombinator.__init__
nltk.ccg.combinator.BackwardCombinator.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardCombinator._combinator
nltk.ccg.combinator.BackwardCombinator.html#_combinator
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.combinator.BackwardCombinator._predicate
nltk.ccg.combinator.BackwardCombinator.html#_predicate
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.combinator.BackwardCombinator._suffix
nltk.ccg.combinator.BackwardCombinator.html#_suffix
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.combinator.BackwardCombinator.can_combine
nltk.ccg.combinator.BackwardCombinator.html#can_combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardCombinator.combine
nltk.ccg.combinator.BackwardCombinator.html#combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardCombinator.__str__
nltk.ccg.combinator.BackwardCombinator.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedFunctionApplication
nltk.ccg.combinator.UndirectedFunctionApplication.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.ccg.combinator.UndirectedFunctionApplication.can_combine
nltk.ccg.combinator.UndirectedFunctionApplication.html#can_combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedFunctionApplication.combine
nltk.ccg.combinator.UndirectedFunctionApplication.html#combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedFunctionApplication.__str__
nltk.ccg.combinator.UndirectedFunctionApplication.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.forwardOnly
nltk.ccg.combinator.html#forwardOnly
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.backwardOnly
nltk.ccg.combinator.html#backwardOnly
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.ForwardApplication
nltk.ccg.combinator.html#ForwardApplication
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardApplication
nltk.ccg.combinator.html#BackwardApplication
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedComposition
nltk.ccg.combinator.UndirectedComposition.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.ccg.combinator.UndirectedComposition.can_combine
nltk.ccg.combinator.UndirectedComposition.html#can_combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedComposition.combine
nltk.ccg.combinator.UndirectedComposition.html#combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedComposition.__str__
nltk.ccg.combinator.UndirectedComposition.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.bothForward
nltk.ccg.combinator.html#bothForward
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.bothBackward
nltk.ccg.combinator.html#bothBackward
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.crossedDirs
nltk.ccg.combinator.html#crossedDirs
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.backwardBxConstraint
nltk.ccg.combinator.html#backwardBxConstraint
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.ForwardComposition
nltk.ccg.combinator.html#ForwardComposition
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardComposition
nltk.ccg.combinator.html#BackwardComposition
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardBx
nltk.ccg.combinator.html#BackwardBx
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedSubstitution
nltk.ccg.combinator.UndirectedSubstitution.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.ccg.combinator.UndirectedSubstitution.can_combine
nltk.ccg.combinator.UndirectedSubstitution.html#can_combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedSubstitution.combine
nltk.ccg.combinator.UndirectedSubstitution.html#combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedSubstitution.__str__
nltk.ccg.combinator.UndirectedSubstitution.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.forwardSConstraint
nltk.ccg.combinator.html#forwardSConstraint
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.backwardSxConstraint
nltk.ccg.combinator.html#backwardSxConstraint
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.ForwardSubstitution
nltk.ccg.combinator.html#ForwardSubstitution
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardSx
nltk.ccg.combinator.html#BackwardSx
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.combinator.innermostFunction
nltk.ccg.combinator.html#innermostFunction
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedTypeRaise
nltk.ccg.combinator.UndirectedTypeRaise.html
ZopeInterfaceClass
Class
VISIBLE
Undirected combinator for type raising.
-
nltk.ccg.combinator.UndirectedTypeRaise.can_combine
nltk.ccg.combinator.UndirectedTypeRaise.html#can_combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedTypeRaise.combine
nltk.ccg.combinator.UndirectedTypeRaise.html#combine
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.UndirectedTypeRaise.__str__
nltk.ccg.combinator.UndirectedTypeRaise.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.combinator.forwardTConstraint
nltk.ccg.combinator.html#forwardTConstraint
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.backwardTConstraint
nltk.ccg.combinator.html#backwardTConstraint
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.combinator.ForwardT
nltk.ccg.combinator.html#ForwardT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.combinator.BackwardT
nltk.ccg.combinator.html#BackwardT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.lexicon.PRIM_RE
nltk.ccg.lexicon.html#PRIM_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.lexicon.NEXTPRIM_RE
nltk.ccg.lexicon.html#NEXTPRIM_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.lexicon.APP_RE
nltk.ccg.lexicon.html#APP_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.lexicon.LEX_RE
nltk.ccg.lexicon.html#LEX_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.lexicon.RHS_RE
nltk.ccg.lexicon.html#RHS_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.lexicon.SEMANTICS_RE
nltk.ccg.lexicon.html#SEMANTICS_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.lexicon.Token
nltk.ccg.lexicon.Token.html
ZopeInterfaceClass
Class
VISIBLE
Class representing a token.
-
nltk.ccg.lexicon.Token.__init__
nltk.ccg.lexicon.Token.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.lexicon.Token._token
nltk.ccg.lexicon.Token.html#_token
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.lexicon.Token._categ
nltk.ccg.lexicon.Token.html#_categ
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.lexicon.Token._semantics
nltk.ccg.lexicon.Token.html#_semantics
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.lexicon.Token.categ
nltk.ccg.lexicon.Token.html#categ
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.lexicon.Token.semantics
nltk.ccg.lexicon.Token.html#semantics
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.lexicon.Token.__str__
nltk.ccg.lexicon.Token.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.lexicon.Token.__cmp__
nltk.ccg.lexicon.Token.html#__cmp__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.lexicon.CCGLexicon
nltk.ccg.lexicon.CCGLexicon.html
ZopeInterfaceClass
Class
VISIBLE
Class representing a lexicon for CCG grammars.
-
nltk.ccg.lexicon.CCGLexicon.__init__
nltk.ccg.lexicon.CCGLexicon.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.lexicon.CCGLexicon._start
nltk.ccg.lexicon.CCGLexicon.html#_start
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.lexicon.CCGLexicon._primitives
nltk.ccg.lexicon.CCGLexicon.html#_primitives
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.lexicon.CCGLexicon._families
nltk.ccg.lexicon.CCGLexicon.html#_families
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.lexicon.CCGLexicon._entries
nltk.ccg.lexicon.CCGLexicon.html#_entries
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.lexicon.CCGLexicon.categories
nltk.ccg.lexicon.CCGLexicon.html#categories
ZopeInterfaceFunction
Method
VISIBLE
Returns all the possible categories for a word
-
nltk.ccg.lexicon.CCGLexicon.start
nltk.ccg.lexicon.CCGLexicon.html#start
ZopeInterfaceFunction
Method
VISIBLE
Return the target category for the parser
-
nltk.ccg.lexicon.CCGLexicon.__str__
nltk.ccg.lexicon.CCGLexicon.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
String representation of the lexicon. Used for debugging.
-
nltk.ccg.lexicon.matchBrackets
nltk.ccg.lexicon.html#matchBrackets
ZopeInterfaceFunction
Function
VISIBLE
Separate the contents matching the first set of brackets from the rest of the input.
-
nltk.ccg.lexicon.nextCategory
nltk.ccg.lexicon.html#nextCategory
ZopeInterfaceFunction
Function
VISIBLE
Separate the string for the next portion of the category from the rest of the string
-
nltk.ccg.lexicon.parseApplication
nltk.ccg.lexicon.html#parseApplication
ZopeInterfaceFunction
Function
VISIBLE
Parse an application operator
-
nltk.ccg.lexicon.parseSubscripts
nltk.ccg.lexicon.html#parseSubscripts
ZopeInterfaceFunction
Function
VISIBLE
Parse the subscripts for a primitive category
-
nltk.ccg.lexicon.parsePrimitiveCategory
nltk.ccg.lexicon.html#parsePrimitiveCategory
ZopeInterfaceFunction
Function
VISIBLE
Parse a primitive category
-
nltk.ccg.lexicon.augParseCategory
nltk.ccg.lexicon.html#augParseCategory
ZopeInterfaceFunction
Function
VISIBLE
Parse a string representing a category, and returns a tuple with (possibly) the CCG variable for the category
-
nltk.ccg.lexicon.fromstring
nltk.ccg.lexicon.html#fromstring
ZopeInterfaceFunction
Function
VISIBLE
Convert string representation into a lexicon for CCGs.
-
nltk.ccg.lexicon.parseLexicon
nltk.ccg.lexicon.html#parseLexicon
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.lexicon.openccg_tinytiny
nltk.ccg.lexicon.html#openccg_tinytiny
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.logic.compute_type_raised_semantics
nltk.ccg.logic.html#compute_type_raised_semantics
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.logic.compute_function_semantics
nltk.ccg.logic.html#compute_function_semantics
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.logic.compute_composition_semantics
nltk.ccg.logic.html#compute_composition_semantics
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.logic.compute_substitution_semantics
nltk.ccg.logic.html#compute_substitution_semantics
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGEdge
nltk.ccg.chart.CCGEdge.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGEdge.__init__
nltk.ccg.chart.CCGEdge.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGEdge._span
nltk.ccg.chart.CCGEdge.html#_span
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGEdge._categ
nltk.ccg.chart.CCGEdge.html#_categ
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGEdge._rule
nltk.ccg.chart.CCGEdge.html#_rule
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGEdge._comparison_key
nltk.ccg.chart.CCGEdge.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGEdge.lhs
nltk.ccg.chart.CCGEdge.html#lhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's left-hand side, which specifies what kind of structure is hypothesized by this edge.
-
nltk.ccg.chart.CCGEdge.span
nltk.ccg.chart.CCGEdge.html#span
ZopeInterfaceFunction
Method
VISIBLE
Return a tuple (s, e), where tokens[s:e] is the portion of the sentence that is consistent with this edge's structure.
-
nltk.ccg.chart.CCGEdge.start
nltk.ccg.chart.CCGEdge.html#start
ZopeInterfaceFunction
Method
VISIBLE
Return the start index of this edge's span.
-
nltk.ccg.chart.CCGEdge.end
nltk.ccg.chart.CCGEdge.html#end
ZopeInterfaceFunction
Method
VISIBLE
Return the end index of this edge's span.
-
nltk.ccg.chart.CCGEdge.length
nltk.ccg.chart.CCGEdge.html#length
ZopeInterfaceFunction
Method
VISIBLE
Return the length of this edge's span.
-
nltk.ccg.chart.CCGEdge.rhs
nltk.ccg.chart.CCGEdge.html#rhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's right-hand side, which specifies the content of the structure hypothesized by this edge.
-
nltk.ccg.chart.CCGEdge.dot
nltk.ccg.chart.CCGEdge.html#dot
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.ccg.chart.CCGEdge.is_complete
nltk.ccg.chart.CCGEdge.html#is_complete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is fully consistent with the text.
-
nltk.ccg.chart.CCGEdge.is_incomplete
nltk.ccg.chart.CCGEdge.html#is_incomplete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is partially consistent with the text.
-
nltk.ccg.chart.CCGEdge.nextsym
nltk.ccg.chart.CCGEdge.html#nextsym
ZopeInterfaceFunction
Method
VISIBLE
Return the element of this edge's right-hand side that immediately follows its dot.
-
nltk.ccg.chart.CCGEdge.categ
nltk.ccg.chart.CCGEdge.html#categ
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGEdge.rule
nltk.ccg.chart.CCGEdge.html#rule
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGLeafEdge
nltk.ccg.chart.CCGLeafEdge.html
ZopeInterfaceClass
Class
VISIBLE
Class representing leaf edges in a CCG derivation.
-
nltk.ccg.chart.CCGLeafEdge.__init__
nltk.ccg.chart.CCGLeafEdge.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGLeafEdge._pos
nltk.ccg.chart.CCGLeafEdge.html#_pos
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGLeafEdge._token
nltk.ccg.chart.CCGLeafEdge.html#_token
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGLeafEdge._leaf
nltk.ccg.chart.CCGLeafEdge.html#_leaf
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGLeafEdge._comparison_key
nltk.ccg.chart.CCGLeafEdge.html#_comparison_key
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGLeafEdge.lhs
nltk.ccg.chart.CCGLeafEdge.html#lhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's left-hand side, which specifies what kind of structure is hypothesized by this edge.
-
nltk.ccg.chart.CCGLeafEdge.span
nltk.ccg.chart.CCGLeafEdge.html#span
ZopeInterfaceFunction
Method
VISIBLE
Return a tuple (s, e), where tokens[s:e] is the portion of the sentence that is consistent with this edge's structure.
-
nltk.ccg.chart.CCGLeafEdge.start
nltk.ccg.chart.CCGLeafEdge.html#start
ZopeInterfaceFunction
Method
VISIBLE
Return the start index of this edge's span.
-
nltk.ccg.chart.CCGLeafEdge.end
nltk.ccg.chart.CCGLeafEdge.html#end
ZopeInterfaceFunction
Method
VISIBLE
Return the end index of this edge's span.
-
nltk.ccg.chart.CCGLeafEdge.length
nltk.ccg.chart.CCGLeafEdge.html#length
ZopeInterfaceFunction
Method
VISIBLE
Return the length of this edge's span.
-
nltk.ccg.chart.CCGLeafEdge.rhs
nltk.ccg.chart.CCGLeafEdge.html#rhs
ZopeInterfaceFunction
Method
VISIBLE
Return this edge's right-hand side, which specifies the content of the structure hypothesized by this edge.
-
nltk.ccg.chart.CCGLeafEdge.dot
nltk.ccg.chart.CCGLeafEdge.html#dot
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.ccg.chart.CCGLeafEdge.is_complete
nltk.ccg.chart.CCGLeafEdge.html#is_complete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is fully consistent with the text.
-
nltk.ccg.chart.CCGLeafEdge.is_incomplete
nltk.ccg.chart.CCGLeafEdge.html#is_incomplete
ZopeInterfaceFunction
Method
VISIBLE
Return True if this edge's structure is partially consistent with the text.
-
nltk.ccg.chart.CCGLeafEdge.nextsym
nltk.ccg.chart.CCGLeafEdge.html#nextsym
ZopeInterfaceFunction
Method
VISIBLE
Return the element of this edge's right-hand side that immediately follows its dot.
-
nltk.ccg.chart.CCGLeafEdge.token
nltk.ccg.chart.CCGLeafEdge.html#token
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGLeafEdge.categ
nltk.ccg.chart.CCGLeafEdge.html#categ
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGLeafEdge.leaf
nltk.ccg.chart.CCGLeafEdge.html#leaf
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.BinaryCombinatorRule
nltk.ccg.chart.BinaryCombinatorRule.html
ZopeInterfaceClass
Class
VISIBLE
Class implementing application of a binary combinator to a chart. Takes the directed combinator to apply.
-
nltk.ccg.chart.BinaryCombinatorRule.NUMEDGES
nltk.ccg.chart.BinaryCombinatorRule.html#NUMEDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.BinaryCombinatorRule.__init__
nltk.ccg.chart.BinaryCombinatorRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.BinaryCombinatorRule._combinator
nltk.ccg.chart.BinaryCombinatorRule.html#_combinator
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.BinaryCombinatorRule.apply
nltk.ccg.chart.BinaryCombinatorRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.ccg.chart.BinaryCombinatorRule.__str__
nltk.ccg.chart.BinaryCombinatorRule.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.ForwardTypeRaiseRule
nltk.ccg.chart.ForwardTypeRaiseRule.html
ZopeInterfaceClass
Class
VISIBLE
Class for applying forward type raising
-
nltk.ccg.chart.ForwardTypeRaiseRule.NUMEDGES
nltk.ccg.chart.ForwardTypeRaiseRule.html#NUMEDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.ForwardTypeRaiseRule.__init__
nltk.ccg.chart.ForwardTypeRaiseRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.ForwardTypeRaiseRule._combinator
nltk.ccg.chart.ForwardTypeRaiseRule.html#_combinator
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.ForwardTypeRaiseRule.apply
nltk.ccg.chart.ForwardTypeRaiseRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.ccg.chart.ForwardTypeRaiseRule.__str__
nltk.ccg.chart.ForwardTypeRaiseRule.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.BackwardTypeRaiseRule
nltk.ccg.chart.BackwardTypeRaiseRule.html
ZopeInterfaceClass
Class
VISIBLE
Class for applying backward type raising.
-
nltk.ccg.chart.BackwardTypeRaiseRule.NUMEDGES
nltk.ccg.chart.BackwardTypeRaiseRule.html#NUMEDGES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.BackwardTypeRaiseRule.__init__
nltk.ccg.chart.BackwardTypeRaiseRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.BackwardTypeRaiseRule._combinator
nltk.ccg.chart.BackwardTypeRaiseRule.html#_combinator
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.BackwardTypeRaiseRule.apply
nltk.ccg.chart.BackwardTypeRaiseRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.ccg.chart.BackwardTypeRaiseRule.__str__
nltk.ccg.chart.BackwardTypeRaiseRule.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.ApplicationRuleSet
nltk.ccg.chart.html#ApplicationRuleSet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.CompositionRuleSet
nltk.ccg.chart.html#CompositionRuleSet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.SubstitutionRuleSet
nltk.ccg.chart.html#SubstitutionRuleSet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.TypeRaiseRuleSet
nltk.ccg.chart.html#TypeRaiseRuleSet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.DefaultRuleSet
nltk.ccg.chart.html#DefaultRuleSet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGChartParser
nltk.ccg.chart.CCGChartParser.html
ZopeInterfaceClass
Class
VISIBLE
Chart parser for CCGs. Based largely on the ChartParser class from NLTK.
-
nltk.ccg.chart.CCGChartParser.__init__
nltk.ccg.chart.CCGChartParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGChartParser._lexicon
nltk.ccg.chart.CCGChartParser.html#_lexicon
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGChartParser._rules
nltk.ccg.chart.CCGChartParser.html#_rules
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGChartParser._trace
nltk.ccg.chart.CCGChartParser.html#_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.ccg.chart.CCGChartParser.lexicon
nltk.ccg.chart.CCGChartParser.html#lexicon
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGChartParser.parse
nltk.ccg.chart.CCGChartParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGChart
nltk.ccg.chart.CCGChart.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.ccg.chart.CCGChart.__init__
nltk.ccg.chart.CCGChart.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new chart. The chart is initialized with the leaf edges corresponding to the terminal leaves.
-
nltk.ccg.chart.CCGChart._trees
nltk.ccg.chart.CCGChart.html#_trees
ZopeInterfaceFunction
Method
PRIVATE
A helper function for trees.
-
nltk.ccg.chart.compute_semantics
nltk.ccg.chart.html#compute_semantics
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.chart.printCCGDerivation
nltk.ccg.chart.html#printCCGDerivation
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.chart.printCCGTree
nltk.ccg.chart.html#printCCGTree
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.ccg.chart.lex
nltk.ccg.chart.html#lex
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.ccg.chart.demo
nltk.ccg.chart.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.help.brown_tagset
nltk.help.html#brown_tagset
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.help.claws5_tagset
nltk.help.html#claws5_tagset
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.help.upenn_tagset
nltk.help.html#upenn_tagset
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.help._print_entries
nltk.help.html#_print_entries
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.help._format_tagset
nltk.help.html#_format_tagset
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.misc.chomsky.leadins
nltk.misc.chomsky.html#leadins
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.misc.chomsky.subjects
nltk.misc.chomsky.html#subjects
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.misc.chomsky.verbs
nltk.misc.chomsky.html#verbs
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.misc.chomsky.objects
nltk.misc.chomsky.html#objects
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.misc.chomsky.generate_chomsky
nltk.misc.chomsky.html#generate_chomsky
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.misc.wordfinder.revword
nltk.misc.wordfinder.html#revword
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.misc.wordfinder.step
nltk.misc.wordfinder.html#step
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.misc.wordfinder.check
nltk.misc.wordfinder.html#check
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.misc.wordfinder.wordfinder
nltk.misc.wordfinder.html#wordfinder
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.misc.wordfinder.word_finder
nltk.misc.wordfinder.html#word_finder
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.misc.minimalset.MinimalSet
nltk.misc.minimalset.MinimalSet.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.misc.minimalset.MinimalSet.__init__
nltk.misc.minimalset.MinimalSet.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new minimal set.
-
nltk.misc.minimalset.MinimalSet._targets
nltk.misc.minimalset.MinimalSet.html#_targets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.misc.minimalset.MinimalSet._contexts
nltk.misc.minimalset.MinimalSet.html#_contexts
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.misc.minimalset.MinimalSet._seen
nltk.misc.minimalset.MinimalSet.html#_seen
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.misc.minimalset.MinimalSet._displays
nltk.misc.minimalset.MinimalSet.html#_displays
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.misc.minimalset.MinimalSet.add
nltk.misc.minimalset.MinimalSet.html#add
ZopeInterfaceFunction
Method
VISIBLE
Add a new item to the minimal set, having the specified context, target, and display form.
-
nltk.misc.minimalset.MinimalSet.contexts
nltk.misc.minimalset.MinimalSet.html#contexts
ZopeInterfaceFunction
Method
VISIBLE
Determine which contexts occurred with enough distinct targets.
-
nltk.misc.minimalset.MinimalSet.display
nltk.misc.minimalset.MinimalSet.html#display
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.misc.minimalset.MinimalSet.display_all
nltk.misc.minimalset.MinimalSet.html#display_all
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.misc.minimalset.MinimalSet.targets
nltk.misc.minimalset.MinimalSet.html#targets
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.misc.babelfish.babelize_shell
nltk.misc.babelfish.html#babelize_shell
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.wsd.lesk
nltk.wsd.html#lesk
ZopeInterfaceFunction
Function
VISIBLE
Return a synset for an ambiguous word in a context.
-
nltk.treetransforms.chomsky_normal_form
nltk.treetransforms.html#chomsky_normal_form
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.treetransforms.un_chomsky_normal_form
nltk.treetransforms.html#un_chomsky_normal_form
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.treetransforms.collapse_unary
nltk.treetransforms.html#collapse_unary
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.treetransforms.demo
nltk.treetransforms.html#demo
ZopeInterfaceFunction
Function
VISIBLE
A demonstration showing how each tree transform can be used.
-
nltk.demo
nltk.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.compat.DATA_UPDATES
nltk.compat.html#DATA_UPDATES
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.compat._PY3_DATA_UPDATES
nltk.compat.html#_PY3_DATA_UPDATES
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.compat.add_py3_data
nltk.compat.html#add_py3_data
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.compat.py3_data
nltk.compat.html#py3_data
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.data.textwrap_indent
nltk.data.html#textwrap_indent
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.data.path
nltk.data.html#path
ZopeInterfaceAttribute
Variable
VISIBLE
No summary
-
nltk.data._paths_from_env
nltk.data.html#_paths_from_env
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.data.gzip_open_unicode
nltk.data.html#gzip_open_unicode
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.data.split_resource_url
nltk.data.html#split_resource_url
ZopeInterfaceFunction
Function
VISIBLE
Splits a resource url into "<protocol>:<path>".
-
nltk.data.normalize_resource_url
nltk.data.html#normalize_resource_url
ZopeInterfaceFunction
Function
VISIBLE
Normalizes a resource url
-
nltk.data.normalize_resource_name
nltk.data.html#normalize_resource_name
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.data.PathPointer
nltk.data.PathPointer.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.data.PathPointer.open
nltk.data.PathPointer.html#open
ZopeInterfaceFunction
Method
VISIBLE
Return a seekable read-only stream that can be used to read the contents of the file identified by this path pointer.
-
nltk.data.PathPointer.file_size
nltk.data.PathPointer.html#file_size
ZopeInterfaceFunction
Method
VISIBLE
Return the size of the file pointed to by this path pointer, in bytes.
-
nltk.data.PathPointer.join
nltk.data.PathPointer.html#join
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.data.FileSystemPathPointer
nltk.data.FileSystemPathPointer.html
ZopeInterfaceClass
Class
VISIBLE
A path pointer that identifies a file which can be accessed directly via a given absolute path.
-
nltk.data.FileSystemPathPointer.__init__
nltk.data.FileSystemPathPointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new path pointer for the given absolute path.
-
nltk.data.FileSystemPathPointer._path
nltk.data.FileSystemPathPointer.html#_path
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.data.FileSystemPathPointer.path
nltk.data.FileSystemPathPointer.html#path
ZopeInterfaceAttribute
Property
VISIBLE
The absolute path identified by this path pointer.
-
nltk.data.FileSystemPathPointer.open
nltk.data.FileSystemPathPointer.html#open
ZopeInterfaceFunction
Method
VISIBLE
Return a seekable read-only stream that can be used to read the contents of the file identified by this path pointer.
-
nltk.data.FileSystemPathPointer.file_size
nltk.data.FileSystemPathPointer.html#file_size
ZopeInterfaceFunction
Method
VISIBLE
Return the size of the file pointed to by this path pointer, in bytes.
-
nltk.data.FileSystemPathPointer.join
nltk.data.FileSystemPathPointer.html#join
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.data.FileSystemPathPointer.__repr__
nltk.data.FileSystemPathPointer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.FileSystemPathPointer.__str__
nltk.data.FileSystemPathPointer.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.BufferedGzipFile
nltk.data.BufferedGzipFile.html
ZopeInterfaceClass
Class
VISIBLE
A GzipFile subclass for compatibility with older nltk releases.
-
nltk.data.BufferedGzipFile.__init__
nltk.data.BufferedGzipFile.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Return a buffered gzip file object.
-
nltk.data.BufferedGzipFile.write
nltk.data.BufferedGzipFile.html#write
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.GzipFileSystemPathPointer
nltk.data.GzipFileSystemPathPointer.html
ZopeInterfaceClass
Class
VISIBLE
A subclass of FileSystemPathPointer that identifies a gzip-compressed file located at a given absolute path. GzipFileSystemPathPointer is appropriate for loading large gzip-compressed pickle objects efficiently.
-
nltk.data.GzipFileSystemPathPointer.open
nltk.data.GzipFileSystemPathPointer.html#open
ZopeInterfaceFunction
Method
VISIBLE
Return a seekable read-only stream that can be used to read the contents of the file identified by this path pointer.
-
nltk.data.ZipFilePathPointer
nltk.data.ZipFilePathPointer.html
ZopeInterfaceClass
Class
VISIBLE
A path pointer that identifies a file contained within a zipfile, which can be accessed by reading that zipfile.
-
nltk.data.ZipFilePathPointer.__init__
nltk.data.ZipFilePathPointer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Create a new path pointer pointing at the specified entry in the given zipfile.
-
nltk.data.ZipFilePathPointer._zipfile
nltk.data.ZipFilePathPointer.html#_zipfile
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.data.ZipFilePathPointer._entry
nltk.data.ZipFilePathPointer.html#_entry
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.data.ZipFilePathPointer.zipfile
nltk.data.ZipFilePathPointer.html#zipfile
ZopeInterfaceAttribute
Property
VISIBLE
The zipfile.ZipFile object used to access the zip file containing the entry identified by this path pointer.
-
nltk.data.ZipFilePathPointer.entry
nltk.data.ZipFilePathPointer.html#entry
ZopeInterfaceAttribute
Property
VISIBLE
The name of the file within zipfile that this path pointer points to.
-
nltk.data.ZipFilePathPointer.open
nltk.data.ZipFilePathPointer.html#open
ZopeInterfaceFunction
Method
VISIBLE
Return a seekable read-only stream that can be used to read the contents of the file identified by this path pointer.
-
nltk.data.ZipFilePathPointer.file_size
nltk.data.ZipFilePathPointer.html#file_size
ZopeInterfaceFunction
Method
VISIBLE
Return the size of the file pointed to by this path pointer, in bytes.
-
nltk.data.ZipFilePathPointer.join
nltk.data.ZipFilePathPointer.html#join
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.data.ZipFilePathPointer.__repr__
nltk.data.ZipFilePathPointer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.ZipFilePathPointer.__str__
nltk.data.ZipFilePathPointer.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data._resource_cache
nltk.data.html#_resource_cache
ZopeInterfaceAttribute
Variable
PRIVATE
A dictionary used to cache resources so that they won't need to be loaded more than once.
-
nltk.data.find
nltk.data.html#find
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.data.retrieve
nltk.data.html#retrieve
ZopeInterfaceFunction
Function
VISIBLE
Copy the given resource to a local file. If no filename is specified, then use the URL's filename. If there is already a file named filename, then raise a ValueError.
-
nltk.data.FORMATS
nltk.data.html#FORMATS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.data.AUTO_FORMATS
nltk.data.html#AUTO_FORMATS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.data.load
nltk.data.html#load
ZopeInterfaceFunction
Function
VISIBLE
Load a given resource from the NLTK data package. The following resource formats are currently supported:
-
nltk.data.show_cfg
nltk.data.html#show_cfg
ZopeInterfaceFunction
Function
VISIBLE
Write out a grammar file, ignoring escaped and empty lines.
-
nltk.data.clear_cache
nltk.data.html#clear_cache
ZopeInterfaceFunction
Function
VISIBLE
Remove all objects from the resource cache. :see: load()
-
nltk.data._open
nltk.data.html#_open
ZopeInterfaceFunction
Function
PRIVATE
No summary
-
nltk.data.LazyLoader
nltk.data.LazyLoader.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.data.LazyLoader.__init__
nltk.data.LazyLoader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.LazyLoader._path
nltk.data.LazyLoader.html#_path
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.data.LazyLoader.__load
nltk.data.LazyLoader.html#__load
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.data.LazyLoader.__dict__
nltk.data.LazyLoader.html#__dict__
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.data.LazyLoader.__class__
nltk.data.LazyLoader.html#__class__
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.data.LazyLoader.__getattr__
nltk.data.LazyLoader.html#__getattr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.LazyLoader.__repr__
nltk.data.LazyLoader.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.OpenOnDemandZipFile
nltk.data.OpenOnDemandZipFile.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.data.OpenOnDemandZipFile.__init__
nltk.data.OpenOnDemandZipFile.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.OpenOnDemandZipFile._fileRefCnt
nltk.data.OpenOnDemandZipFile.html#_fileRefCnt
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.data.OpenOnDemandZipFile.read
nltk.data.OpenOnDemandZipFile.html#read
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.OpenOnDemandZipFile.fp
nltk.data.OpenOnDemandZipFile.html#fp
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.data.OpenOnDemandZipFile.write
nltk.data.OpenOnDemandZipFile.html#write
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.data.OpenOnDemandZipFile.writestr
nltk.data.OpenOnDemandZipFile.html#writestr
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.data.OpenOnDemandZipFile.__repr__
nltk.data.OpenOnDemandZipFile.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader
nltk.data.SeekableUnicodeStreamReader.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.data.SeekableUnicodeStreamReader.DEBUG
nltk.data.SeekableUnicodeStreamReader.html#DEBUG
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader.__init__
nltk.data.SeekableUnicodeStreamReader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader.stream
nltk.data.SeekableUnicodeStreamReader.html#stream
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The underlying stream.
-
nltk.data.SeekableUnicodeStreamReader.encoding
nltk.data.SeekableUnicodeStreamReader.html#encoding
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The name of the encoding that should be used to encode the underlying stream.
-
nltk.data.SeekableUnicodeStreamReader.errors
nltk.data.SeekableUnicodeStreamReader.html#errors
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The error mode that should be used when decoding data from the underlying stream. Can be 'strict', 'ignore', or 'replace'.
-
nltk.data.SeekableUnicodeStreamReader.decode
nltk.data.SeekableUnicodeStreamReader.html#decode
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The function that is used to decode byte strings into unicode strings.
-
nltk.data.SeekableUnicodeStreamReader.bytebuffer
nltk.data.SeekableUnicodeStreamReader.html#bytebuffer
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A buffer to use bytes that have been read but have not yet been decoded. This is only used when the final bytes from a read do not form a complete encoding for a character.
-
nltk.data.SeekableUnicodeStreamReader.linebuffer
nltk.data.SeekableUnicodeStreamReader.html#linebuffer
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.data.SeekableUnicodeStreamReader._rewind_checkpoint
nltk.data.SeekableUnicodeStreamReader.html#_rewind_checkpoint
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.data.SeekableUnicodeStreamReader._rewind_numchars
nltk.data.SeekableUnicodeStreamReader.html#_rewind_numchars
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.data.SeekableUnicodeStreamReader._bom
nltk.data.SeekableUnicodeStreamReader.html#_bom
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The length of the byte order marker at the beginning of the stream (or None for no byte order marker).
-
nltk.data.SeekableUnicodeStreamReader.read
nltk.data.SeekableUnicodeStreamReader.html#read
ZopeInterfaceFunction
Method
VISIBLE
Read up to size bytes, decode them using this reader's encoding, and return the resulting unicode string.
-
nltk.data.SeekableUnicodeStreamReader.discard_line
nltk.data.SeekableUnicodeStreamReader.html#discard_line
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader.readline
nltk.data.SeekableUnicodeStreamReader.html#readline
ZopeInterfaceFunction
Method
VISIBLE
Read a line of text, decode it using this reader's encoding, and return the resulting unicode string.
-
nltk.data.SeekableUnicodeStreamReader.readlines
nltk.data.SeekableUnicodeStreamReader.html#readlines
ZopeInterfaceFunction
Method
VISIBLE
Read this file's contents, decode them using this reader's encoding, and return it as a list of unicode lines.
-
nltk.data.SeekableUnicodeStreamReader.next
nltk.data.SeekableUnicodeStreamReader.html#next
ZopeInterfaceFunction
Method
VISIBLE
Return the next decoded line from the underlying stream.
-
nltk.data.SeekableUnicodeStreamReader.__next__
nltk.data.SeekableUnicodeStreamReader.html#__next__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader.__iter__
nltk.data.SeekableUnicodeStreamReader.html#__iter__
ZopeInterfaceFunction
Method
VISIBLE
Return self
-
nltk.data.SeekableUnicodeStreamReader.__del__
nltk.data.SeekableUnicodeStreamReader.html#__del__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader.__enter__
nltk.data.SeekableUnicodeStreamReader.html#__enter__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader.__exit__
nltk.data.SeekableUnicodeStreamReader.html#__exit__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader.xreadlines
nltk.data.SeekableUnicodeStreamReader.html#xreadlines
ZopeInterfaceFunction
Method
VISIBLE
Return self
-
nltk.data.SeekableUnicodeStreamReader.closed
nltk.data.SeekableUnicodeStreamReader.html#closed
ZopeInterfaceAttribute
Property
VISIBLE
True if the underlying stream is closed.
-
nltk.data.SeekableUnicodeStreamReader.name
nltk.data.SeekableUnicodeStreamReader.html#name
ZopeInterfaceAttribute
Property
VISIBLE
The name of the underlying stream.
-
nltk.data.SeekableUnicodeStreamReader.mode
nltk.data.SeekableUnicodeStreamReader.html#mode
ZopeInterfaceAttribute
Property
VISIBLE
The mode of the underlying stream.
-
nltk.data.SeekableUnicodeStreamReader.close
nltk.data.SeekableUnicodeStreamReader.html#close
ZopeInterfaceFunction
Method
VISIBLE
Close the underlying stream.
-
nltk.data.SeekableUnicodeStreamReader.seek
nltk.data.SeekableUnicodeStreamReader.html#seek
ZopeInterfaceFunction
Method
VISIBLE
Move the stream to a new file position. If the reader is maintaining any buffers, then they will be cleared.
-
nltk.data.SeekableUnicodeStreamReader.char_seek_forward
nltk.data.SeekableUnicodeStreamReader.html#char_seek_forward
ZopeInterfaceFunction
Method
VISIBLE
Move the read pointer forward by offset characters.
-
nltk.data.SeekableUnicodeStreamReader._char_seek_forward
nltk.data.SeekableUnicodeStreamReader.html#_char_seek_forward
ZopeInterfaceFunction
Method
PRIVATE
Move the file position forward by offset characters, ignoring all buffers.
-
nltk.data.SeekableUnicodeStreamReader.tell
nltk.data.SeekableUnicodeStreamReader.html#tell
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.data.SeekableUnicodeStreamReader._read
nltk.data.SeekableUnicodeStreamReader.html#_read
ZopeInterfaceFunction
Method
PRIVATE
Read up to size bytes from the underlying stream, decode them using this reader's encoding, and return the resulting unicode string. linebuffer is not included in the result.
-
nltk.data.SeekableUnicodeStreamReader._incr_decode
nltk.data.SeekableUnicodeStreamReader.html#_incr_decode
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.data.SeekableUnicodeStreamReader._BOM_TABLE
nltk.data.SeekableUnicodeStreamReader.html#_BOM_TABLE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.data.SeekableUnicodeStreamReader._check_bom
nltk.data.SeekableUnicodeStreamReader.html#_check_bom
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tokenize.casual.EMOTICONS
nltk.tokenize.casual.html#EMOTICONS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.casual.URLS
nltk.tokenize.casual.html#URLS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.casual.REGEXPS
nltk.tokenize.casual.html#REGEXPS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.casual.WORD_RE
nltk.tokenize.casual.html#WORD_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.casual.HANG_RE
nltk.tokenize.casual.html#HANG_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.casual.EMOTICON_RE
nltk.tokenize.casual.html#EMOTICON_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.casual.ENT_RE
nltk.tokenize.casual.html#ENT_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.casual._str_to_unicode
nltk.tokenize.casual.html#_str_to_unicode
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tokenize.casual._replace_html_entities
nltk.tokenize.casual.html#_replace_html_entities
ZopeInterfaceFunction
Function
PRIVATE
Remove entities from text by converting them to their corresponding unicode character.
-
nltk.tokenize.casual.TweetTokenizer.strip_handles
nltk.tokenize.casual.TweetTokenizer.html#strip_handles
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.casual.reduce_lengthening
nltk.tokenize.casual.html#reduce_lengthening
ZopeInterfaceFunction
Function
VISIBLE
Replace repeated character sequences of length 3 or greater with sequences of length 3.
-
nltk.tokenize.casual.remove_handles
nltk.tokenize.casual.html#remove_handles
ZopeInterfaceFunction
Function
VISIBLE
Remove Twitter username handles from text.
-
nltk.tokenize.casual.casual_tokenize
nltk.tokenize.casual.html#casual_tokenize
ZopeInterfaceFunction
Function
VISIBLE
Convenience function for wrapping the tokenizer.
-
nltk.tokenize.mwe.MWETokenizer
nltk.tokenize.mwe.MWETokenizer.html
ZopeInterfaceClass
Class
VISIBLE
A tokenizer that processes tokenized text and merges multi-word expressions into single tokens.
-
nltk.tokenize.mwe.MWETokenizer.__init__
nltk.tokenize.mwe.MWETokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Initialize the multi-word tokenizer with a list of expressions and a separator
-
nltk.tokenize.mwe.MWETokenizer._mwes
nltk.tokenize.mwe.MWETokenizer.html#_mwes
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.mwe.MWETokenizer._separator
nltk.tokenize.mwe.MWETokenizer.html#_separator
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.mwe.MWETokenizer.add_mwe
nltk.tokenize.mwe.MWETokenizer.html#add_mwe
ZopeInterfaceFunction
Method
VISIBLE
Add a multi-word expression to the lexicon (stored as a word trie)
-
nltk.tokenize.mwe.MWETokenizer.tokenize
nltk.tokenize.mwe.MWETokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tokenize.destructive.MacIntyreContractions
nltk.tokenize.destructive.MacIntyreContractions.html
ZopeInterfaceClass
Class
VISIBLE
List of contractions adapted from Robert MacIntyre's tokenizer.
-
nltk.tokenize.destructive.MacIntyreContractions.CONTRACTIONS2
nltk.tokenize.destructive.MacIntyreContractions.html#CONTRACTIONS2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.MacIntyreContractions.CONTRACTIONS3
nltk.tokenize.destructive.MacIntyreContractions.html#CONTRACTIONS3
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.MacIntyreContractions.CONTRACTIONS4
nltk.tokenize.destructive.MacIntyreContractions.html#CONTRACTIONS4
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer
nltk.tokenize.destructive.NLTKWordTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
The NLTK tokenizer that has improved upon the TreebankWordTokenizer.
-
nltk.tokenize.destructive.NLTKWordTokenizer.STARTING_QUOTES
nltk.tokenize.destructive.NLTKWordTokenizer.html#STARTING_QUOTES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer.ENDING_QUOTES
nltk.tokenize.destructive.NLTKWordTokenizer.html#ENDING_QUOTES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer.PUNCTUATION
nltk.tokenize.destructive.NLTKWordTokenizer.html#PUNCTUATION
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer.PARENS_BRACKETS
nltk.tokenize.destructive.NLTKWordTokenizer.html#PARENS_BRACKETS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer.CONVERT_PARENTHESES
nltk.tokenize.destructive.NLTKWordTokenizer.html#CONVERT_PARENTHESES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer.DOUBLE_DASHES
nltk.tokenize.destructive.NLTKWordTokenizer.html#DOUBLE_DASHES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer._contractions
nltk.tokenize.destructive.NLTKWordTokenizer.html#_contractions
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer.CONTRACTIONS2
nltk.tokenize.destructive.NLTKWordTokenizer.html#CONTRACTIONS2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer.CONTRACTIONS3
nltk.tokenize.destructive.NLTKWordTokenizer.html#CONTRACTIONS3
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.destructive.NLTKWordTokenizer.tokenize
nltk.tokenize.destructive.NLTKWordTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.punkt._ORTHO_BEG_UC
nltk.tokenize.punkt.html#_ORTHO_BEG_UC
ZopeInterfaceAttribute
Variable
PRIVATE
Orthographic context: beginning of a sentence with upper case.
-
nltk.tokenize.punkt._ORTHO_MID_UC
nltk.tokenize.punkt.html#_ORTHO_MID_UC
ZopeInterfaceAttribute
Variable
PRIVATE
Orthographic context: middle of a sentence with upper case.
-
nltk.tokenize.punkt._ORTHO_UNK_UC
nltk.tokenize.punkt.html#_ORTHO_UNK_UC
ZopeInterfaceAttribute
Variable
PRIVATE
Orthographic context: unknown position in a sentence with upper case.
-
nltk.tokenize.punkt._ORTHO_BEG_LC
nltk.tokenize.punkt.html#_ORTHO_BEG_LC
ZopeInterfaceAttribute
Variable
PRIVATE
Orthographic context: beginning of a sentence with lower case.
-
nltk.tokenize.punkt._ORTHO_MID_LC
nltk.tokenize.punkt.html#_ORTHO_MID_LC
ZopeInterfaceAttribute
Variable
PRIVATE
Orthographic context: middle of a sentence with lower case.
-
nltk.tokenize.punkt._ORTHO_UNK_LC
nltk.tokenize.punkt.html#_ORTHO_UNK_LC
ZopeInterfaceAttribute
Variable
PRIVATE
Orthographic context: unknown position in a sentence with lower case.
-
nltk.tokenize.punkt._ORTHO_UC
nltk.tokenize.punkt.html#_ORTHO_UC
ZopeInterfaceAttribute
Variable
PRIVATE
Orthographic context: occurs with upper case.
-
nltk.tokenize.punkt._ORTHO_LC
nltk.tokenize.punkt.html#_ORTHO_LC
ZopeInterfaceAttribute
Variable
PRIVATE
Orthographic context: occurs with lower case.
-
nltk.tokenize.punkt._ORTHO_MAP
nltk.tokenize.punkt.html#_ORTHO_MAP
ZopeInterfaceAttribute
Variable
PRIVATE
A map from context position and first-letter case to the appropriate orthographic context flag.
-
nltk.tokenize.punkt.REASON_DEFAULT_DECISION
nltk.tokenize.punkt.html#REASON_DEFAULT_DECISION
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.REASON_KNOWN_COLLOCATION
nltk.tokenize.punkt.html#REASON_KNOWN_COLLOCATION
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.REASON_ABBR_WITH_ORTHOGRAPHIC_HEURISTIC
nltk.tokenize.punkt.html#REASON_ABBR_WITH_ORTHOGRAPHIC_HEURISTIC
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.REASON_ABBR_WITH_SENTENCE_STARTER
nltk.tokenize.punkt.html#REASON_ABBR_WITH_SENTENCE_STARTER
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.REASON_INITIAL_WITH_ORTHOGRAPHIC_HEURISTIC
nltk.tokenize.punkt.html#REASON_INITIAL_WITH_ORTHOGRAPHIC_HEURISTIC
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.REASON_NUMBER_WITH_ORTHOGRAPHIC_HEURISTIC
nltk.tokenize.punkt.html#REASON_NUMBER_WITH_ORTHOGRAPHIC_HEURISTIC
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.REASON_INITIAL_WITH_SPECIAL_ORTHOGRAPHIC_HEURISTIC
nltk.tokenize.punkt.html#REASON_INITIAL_WITH_SPECIAL_ORTHOGRAPHIC_HEURISTIC
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktLanguageVars
nltk.tokenize.punkt.PunktLanguageVars.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tokenize.punkt.PunktLanguageVars.__slots__
nltk.tokenize.punkt.PunktLanguageVars.html#__slots__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktLanguageVars.__getstate__
nltk.tokenize.punkt.PunktLanguageVars.html#__getstate__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktLanguageVars.__setstate__
nltk.tokenize.punkt.PunktLanguageVars.html#__setstate__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktLanguageVars.sent_end_chars
nltk.tokenize.punkt.PunktLanguageVars.html#sent_end_chars
ZopeInterfaceAttribute
Class Variable
VISIBLE
Characters which are candidates for sentence boundaries
-
nltk.tokenize.punkt.PunktLanguageVars._re_sent_end_chars
nltk.tokenize.punkt.PunktLanguageVars.html#_re_sent_end_chars
ZopeInterfaceAttribute
Property
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktLanguageVars.internal_punctuation
nltk.tokenize.punkt.PunktLanguageVars.html#internal_punctuation
ZopeInterfaceAttribute
Class Variable
VISIBLE
sentence internal punctuation, which indicates an abbreviation if preceded by a period-final token.
-
nltk.tokenize.punkt.PunktLanguageVars.re_boundary_realignment
nltk.tokenize.punkt.PunktLanguageVars.html#re_boundary_realignment
ZopeInterfaceAttribute
Class Variable
VISIBLE
Used to realign punctuation that should be included in a sentence although it follows the period (or ?, !).
-
nltk.tokenize.punkt.PunktLanguageVars._re_word_start
nltk.tokenize.punkt.PunktLanguageVars.html#_re_word_start
ZopeInterfaceAttribute
Class Variable
PRIVATE
Excludes some characters from starting word tokens
-
nltk.tokenize.punkt.PunktLanguageVars._re_non_word_chars
nltk.tokenize.punkt.PunktLanguageVars.html#_re_non_word_chars
ZopeInterfaceAttribute
Property
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktLanguageVars._re_multi_char_punct
nltk.tokenize.punkt.PunktLanguageVars.html#_re_multi_char_punct
ZopeInterfaceAttribute
Class Variable
PRIVATE
Hyphen and ellipsis are multi-character punctuation
-
nltk.tokenize.punkt.PunktLanguageVars._word_tokenize_fmt
nltk.tokenize.punkt.PunktLanguageVars.html#_word_tokenize_fmt
ZopeInterfaceAttribute
Class Variable
PRIVATE
Format of a regular expression to split punctuation from words, excluding period.
-
nltk.tokenize.punkt.PunktLanguageVars._word_tokenizer_re
nltk.tokenize.punkt.PunktLanguageVars.html#_word_tokenizer_re
ZopeInterfaceFunction
Method
PRIVATE
Compiles and returns a regular expression for word tokenization
-
nltk.tokenize.punkt.PunktLanguageVars._re_word_tokenizer
nltk.tokenize.punkt.PunktLanguageVars.html#_re_word_tokenizer
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktLanguageVars.word_tokenize
nltk.tokenize.punkt.PunktLanguageVars.html#word_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Tokenize a string to split off punctuation other than periods
-
nltk.tokenize.punkt.PunktLanguageVars._period_context_fmt
nltk.tokenize.punkt.PunktLanguageVars.html#_period_context_fmt
ZopeInterfaceAttribute
Class Variable
PRIVATE
Format of a regular expression to find contexts including possible sentence boundaries. Matches token which the possible sentence boundary ends, and matches the following token within a lookahead expression.
-
nltk.tokenize.punkt.PunktLanguageVars.period_context_re
nltk.tokenize.punkt.PunktLanguageVars.html#period_context_re
ZopeInterfaceFunction
Method
VISIBLE
Compiles and returns a regular expression to find contexts including possible sentence boundaries.
-
nltk.tokenize.punkt.PunktLanguageVars._re_period_context
nltk.tokenize.punkt.PunktLanguageVars.html#_re_period_context
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt._re_non_punct
nltk.tokenize.punkt.html#_re_non_punct
ZopeInterfaceAttribute
Variable
PRIVATE
Matches token types that are not merely punctuation. (Types for numeric tokens are changed to ##number## and hence contain alpha.)
-
nltk.tokenize.punkt._pair_iter
nltk.tokenize.punkt.html#_pair_iter
ZopeInterfaceFunction
Function
PRIVATE
Yields pairs of tokens from the given iterator such that each input token will appear as the first element in a yielded tuple. The last pair will have None as its second element.
-
nltk.tokenize.punkt.PunktParameters
nltk.tokenize.punkt.PunktParameters.html
ZopeInterfaceClass
Class
VISIBLE
Stores data used to perform sentence boundary detection with Punkt.
-
nltk.tokenize.punkt.PunktParameters.__init__
nltk.tokenize.punkt.PunktParameters.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktParameters.abbrev_types
nltk.tokenize.punkt.PunktParameters.html#abbrev_types
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A set of word types for known abbreviations.
-
nltk.tokenize.punkt.PunktParameters.collocations
nltk.tokenize.punkt.PunktParameters.html#collocations
ZopeInterfaceAttribute
Instance Variable
VISIBLE
No summary
-
nltk.tokenize.punkt.PunktParameters.sent_starters
nltk.tokenize.punkt.PunktParameters.html#sent_starters
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A set of word types for words that often appear at the beginning of sentences.
-
nltk.tokenize.punkt.PunktParameters.ortho_context
nltk.tokenize.punkt.PunktParameters.html#ortho_context
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A dictionary mapping word types to the set of orthographic contexts that word type appears in. Contexts are represented by adding orthographic context flags: ...
-
nltk.tokenize.punkt.PunktParameters.clear_abbrevs
nltk.tokenize.punkt.PunktParameters.html#clear_abbrevs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktParameters.clear_collocations
nltk.tokenize.punkt.PunktParameters.html#clear_collocations
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktParameters.clear_sent_starters
nltk.tokenize.punkt.PunktParameters.html#clear_sent_starters
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktParameters.clear_ortho_context
nltk.tokenize.punkt.PunktParameters.html#clear_ortho_context
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktParameters.add_ortho_context
nltk.tokenize.punkt.PunktParameters.html#add_ortho_context
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktParameters._debug_ortho_context
nltk.tokenize.punkt.PunktParameters.html#_debug_ortho_context
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktToken
nltk.tokenize.punkt.PunktToken.html
ZopeInterfaceClass
Class
VISIBLE
Stores a token of text with annotations produced during sentence boundary detection.
-
nltk.tokenize.punkt.PunktToken._properties
nltk.tokenize.punkt.PunktToken.html#_properties
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktToken.__slots__
nltk.tokenize.punkt.PunktToken.html#__slots__
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktToken.__init__
nltk.tokenize.punkt.PunktToken.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktToken.tok
nltk.tokenize.punkt.PunktToken.html#tok
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktToken.type
nltk.tokenize.punkt.PunktToken.html#type
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktToken.period_final
nltk.tokenize.punkt.PunktToken.html#period_final
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktToken._RE_ELLIPSIS
nltk.tokenize.punkt.PunktToken.html#_RE_ELLIPSIS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktToken._RE_NUMERIC
nltk.tokenize.punkt.PunktToken.html#_RE_NUMERIC
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktToken._RE_INITIAL
nltk.tokenize.punkt.PunktToken.html#_RE_INITIAL
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktToken._RE_ALPHA
nltk.tokenize.punkt.PunktToken.html#_RE_ALPHA
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktToken._get_type
nltk.tokenize.punkt.PunktToken.html#_get_type
ZopeInterfaceFunction
Method
PRIVATE
Returns a case-normalized representation of the token.
-
nltk.tokenize.punkt.PunktToken.type_no_period
nltk.tokenize.punkt.PunktToken.html#type_no_period
ZopeInterfaceAttribute
Property
VISIBLE
The type with its final period removed if it has one.
-
nltk.tokenize.punkt.PunktToken.type_no_sentperiod
nltk.tokenize.punkt.PunktToken.html#type_no_sentperiod
ZopeInterfaceAttribute
Property
VISIBLE
The type with its final period removed if it is marked as a sentence break.
-
nltk.tokenize.punkt.PunktToken.first_upper
nltk.tokenize.punkt.PunktToken.html#first_upper
ZopeInterfaceAttribute
Property
VISIBLE
True if the token's first character is uppercase.
-
nltk.tokenize.punkt.PunktToken.first_lower
nltk.tokenize.punkt.PunktToken.html#first_lower
ZopeInterfaceAttribute
Property
VISIBLE
True if the token's first character is lowercase.
-
nltk.tokenize.punkt.PunktToken.first_case
nltk.tokenize.punkt.PunktToken.html#first_case
ZopeInterfaceAttribute
Property
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktToken.is_ellipsis
nltk.tokenize.punkt.PunktToken.html#is_ellipsis
ZopeInterfaceAttribute
Property
VISIBLE
True if the token text is that of an ellipsis.
-
nltk.tokenize.punkt.PunktToken.is_number
nltk.tokenize.punkt.PunktToken.html#is_number
ZopeInterfaceAttribute
Property
VISIBLE
True if the token text is that of a number.
-
nltk.tokenize.punkt.PunktToken.is_initial
nltk.tokenize.punkt.PunktToken.html#is_initial
ZopeInterfaceAttribute
Property
VISIBLE
True if the token text is that of an initial.
-
nltk.tokenize.punkt.PunktToken.is_alpha
nltk.tokenize.punkt.PunktToken.html#is_alpha
ZopeInterfaceAttribute
Property
VISIBLE
True if the token text is all alphabetic.
-
nltk.tokenize.punkt.PunktToken.is_non_punct
nltk.tokenize.punkt.PunktToken.html#is_non_punct
ZopeInterfaceAttribute
Property
VISIBLE
True if the token is either a number or is alphabetic.
-
nltk.tokenize.punkt.PunktToken.__repr__
nltk.tokenize.punkt.PunktToken.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
A string representation of the token that can reproduce it with eval(), which lists all the token's non-default annotations.
-
nltk.tokenize.punkt.PunktToken.__str__
nltk.tokenize.punkt.PunktToken.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
A string representation akin to that used by Kiss and Strunk.
-
nltk.tokenize.punkt.PunktBaseClass
nltk.tokenize.punkt.PunktBaseClass.html
ZopeInterfaceClass
Class
VISIBLE
Includes common components of PunktTrainer and PunktSentenceTokenizer.
-
nltk.tokenize.punkt.PunktBaseClass.__init__
nltk.tokenize.punkt.PunktBaseClass.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktBaseClass._params
nltk.tokenize.punkt.PunktBaseClass.html#_params
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktBaseClass._lang_vars
nltk.tokenize.punkt.PunktBaseClass.html#_lang_vars
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktBaseClass._Token
nltk.tokenize.punkt.PunktBaseClass.html#_Token
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The collection of parameters that determines the behavior of the punkt tokenizer.
-
nltk.tokenize.punkt.PunktBaseClass._tokenize_words
nltk.tokenize.punkt.PunktBaseClass.html#_tokenize_words
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tokenize.punkt.PunktBaseClass._annotate_first_pass
nltk.tokenize.punkt.PunktBaseClass.html#_annotate_first_pass
ZopeInterfaceFunction
Method
PRIVATE
Perform the first pass of annotation, which makes decisions based purely based on the word type of each word:
-
nltk.tokenize.punkt.PunktBaseClass._first_pass_annotation
nltk.tokenize.punkt.PunktBaseClass.html#_first_pass_annotation
ZopeInterfaceFunction
Method
PRIVATE
Performs type-based annotation on a single token.
-
nltk.tokenize.punkt.PunktTrainer
nltk.tokenize.punkt.PunktTrainer.html
ZopeInterfaceClass
Class
VISIBLE
Learns parameters used in Punkt sentence boundary detection.
-
nltk.tokenize.punkt.PunktTrainer.__init__
nltk.tokenize.punkt.PunktTrainer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktTrainer._type_fdist
nltk.tokenize.punkt.PunktTrainer.html#_type_fdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A frequency distribution giving the frequency of each case-normalized token type in the training data.
-
nltk.tokenize.punkt.PunktTrainer._num_period_toks
nltk.tokenize.punkt.PunktTrainer.html#_num_period_toks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The number of words ending in period in the training data.
-
nltk.tokenize.punkt.PunktTrainer._collocation_fdist
nltk.tokenize.punkt.PunktTrainer.html#_collocation_fdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.tokenize.punkt.PunktTrainer._sent_starter_fdist
nltk.tokenize.punkt.PunktTrainer.html#_sent_starter_fdist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
No summary
-
nltk.tokenize.punkt.PunktTrainer._sentbreak_count
nltk.tokenize.punkt.PunktTrainer.html#_sentbreak_count
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The total number of sentence breaks identified in training, used for calculating the frequent sentence starter heuristic.
-
nltk.tokenize.punkt.PunktTrainer._finalized
nltk.tokenize.punkt.PunktTrainer.html#_finalized
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A flag as to whether the training has been finalized by finding collocations and sentence starters, or whether finalize_training() still needs to be called.
-
nltk.tokenize.punkt.PunktTrainer.get_params
nltk.tokenize.punkt.PunktTrainer.html#get_params
ZopeInterfaceFunction
Method
VISIBLE
Calculates and returns parameters for sentence boundary detection as derived from training.
-
nltk.tokenize.punkt.PunktTrainer.ABBREV
nltk.tokenize.punkt.PunktTrainer.html#ABBREV
ZopeInterfaceAttribute
Class Variable
VISIBLE
cut-off value whether a 'token' is an abbreviation
-
nltk.tokenize.punkt.PunktTrainer.IGNORE_ABBREV_PENALTY
nltk.tokenize.punkt.PunktTrainer.html#IGNORE_ABBREV_PENALTY
ZopeInterfaceAttribute
Class Variable
VISIBLE
allows the disabling of the abbreviation penalty heuristic, which exponentially disadvantages words that are found at times without a final period.
-
nltk.tokenize.punkt.PunktTrainer.ABBREV_BACKOFF
nltk.tokenize.punkt.PunktTrainer.html#ABBREV_BACKOFF
ZopeInterfaceAttribute
Class Variable
VISIBLE
upper cut-off for Mikheev's(2002) abbreviation detection algorithm
-
nltk.tokenize.punkt.PunktTrainer.COLLOCATION
nltk.tokenize.punkt.PunktTrainer.html#COLLOCATION
ZopeInterfaceAttribute
Class Variable
VISIBLE
minimal log-likelihood value that two tokens need to be considered as a collocation
-
nltk.tokenize.punkt.PunktTrainer.SENT_STARTER
nltk.tokenize.punkt.PunktTrainer.html#SENT_STARTER
ZopeInterfaceAttribute
Class Variable
VISIBLE
minimal log-likelihood value that a token requires to be considered as a frequent sentence starter
-
nltk.tokenize.punkt.PunktTrainer.INCLUDE_ALL_COLLOCS
nltk.tokenize.punkt.PunktTrainer.html#INCLUDE_ALL_COLLOCS
ZopeInterfaceAttribute
Class Variable
VISIBLE
this includes as potential collocations all word pairs where the first word ends in a period. It may be useful in corpora where there is a lot of variation that makes abbreviations like Mr difficult to identify.
-
nltk.tokenize.punkt.PunktTrainer.INCLUDE_ABBREV_COLLOCS
nltk.tokenize.punkt.PunktTrainer.html#INCLUDE_ABBREV_COLLOCS
ZopeInterfaceAttribute
Class Variable
VISIBLE
No summary
-
nltk.tokenize.punkt.PunktTrainer.MIN_COLLOC_FREQ
nltk.tokenize.punkt.PunktTrainer.html#MIN_COLLOC_FREQ
ZopeInterfaceAttribute
Class Variable
VISIBLE
this sets a minimum bound on the number of times a bigram needs to appear before it can be considered a collocation, in addition to log likelihood statistics. This is useful when INCLUDE_ALL_COLLOCS is True.
-
nltk.tokenize.punkt.PunktTrainer.train
nltk.tokenize.punkt.PunktTrainer.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tokenize.punkt.PunktTrainer.train_tokens
nltk.tokenize.punkt.PunktTrainer.html#train_tokens
ZopeInterfaceFunction
Method
VISIBLE
Collects training data from a given list of tokens.
-
nltk.tokenize.punkt.PunktTrainer._train_tokens
nltk.tokenize.punkt.PunktTrainer.html#_train_tokens
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktTrainer._unique_types
nltk.tokenize.punkt.PunktTrainer.html#_unique_types
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktTrainer.finalize_training
nltk.tokenize.punkt.PunktTrainer.html#finalize_training
ZopeInterfaceFunction
Method
VISIBLE
Uses data that has been gathered in training to determine likely collocations and sentence starters.
-
nltk.tokenize.punkt.PunktTrainer.freq_threshold
nltk.tokenize.punkt.PunktTrainer.html#freq_threshold
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tokenize.punkt.PunktTrainer._freq_threshold
nltk.tokenize.punkt.PunktTrainer.html#_freq_threshold
ZopeInterfaceFunction
Method
PRIVATE
Returns a FreqDist containing only data with counts below a given threshold, as well as a mapping (None -> count_removed).
-
nltk.tokenize.punkt.PunktTrainer._get_orthography_data
nltk.tokenize.punkt.PunktTrainer.html#_get_orthography_data
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tokenize.punkt.PunktTrainer._reclassify_abbrev_types
nltk.tokenize.punkt.PunktTrainer.html#_reclassify_abbrev_types
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tokenize.punkt.PunktTrainer.find_abbrev_types
nltk.tokenize.punkt.PunktTrainer.html#find_abbrev_types
ZopeInterfaceFunction
Method
VISIBLE
Recalculates abbreviations given type frequencies, despite no prior determination of abbreviations. This fails to include abbreviations otherwise found as "rare".
-
nltk.tokenize.punkt.PunktTrainer._is_rare_abbrev_type
nltk.tokenize.punkt.PunktTrainer.html#_is_rare_abbrev_type
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.tokenize.punkt.PunktTrainer._dunning_log_likelihood
nltk.tokenize.punkt.PunktTrainer.html#_dunning_log_likelihood
ZopeInterfaceFunction
Static Method
PRIVATE
A function that calculates the modified Dunning log-likelihood ratio scores for abbreviation candidates. The details of how this works is available in the paper.
-
nltk.tokenize.punkt.PunktTrainer._col_log_likelihood
nltk.tokenize.punkt.PunktTrainer.html#_col_log_likelihood
ZopeInterfaceFunction
Static Method
PRIVATE
A function that will just compute log-likelihood estimate, in the original paper it's described in algorithm 6 and 7.
-
nltk.tokenize.punkt.PunktTrainer._is_potential_collocation
nltk.tokenize.punkt.PunktTrainer.html#_is_potential_collocation
ZopeInterfaceFunction
Method
PRIVATE
Returns True if the pair of tokens may form a collocation given log-likelihood statistics.
-
nltk.tokenize.punkt.PunktTrainer._find_collocations
nltk.tokenize.punkt.PunktTrainer.html#_find_collocations
ZopeInterfaceFunction
Method
PRIVATE
Generates likely collocations and their log-likelihood.
-
nltk.tokenize.punkt.PunktTrainer._is_potential_sent_starter
nltk.tokenize.punkt.PunktTrainer.html#_is_potential_sent_starter
ZopeInterfaceFunction
Method
PRIVATE
Returns True given a token and the token that preceds it if it seems clear that the token is beginning a sentence.
-
nltk.tokenize.punkt.PunktTrainer._find_sent_starters
nltk.tokenize.punkt.PunktTrainer.html#_find_sent_starters
ZopeInterfaceFunction
Method
PRIVATE
Uses collocation heuristics for each candidate token to determine if it frequently starts sentences.
-
nltk.tokenize.punkt.PunktTrainer._get_sentbreak_count
nltk.tokenize.punkt.PunktTrainer.html#_get_sentbreak_count
ZopeInterfaceFunction
Method
PRIVATE
Returns the number of sentence breaks marked in a given set of augmented tokens.
-
nltk.tokenize.punkt.PunktSentenceTokenizer
nltk.tokenize.punkt.PunktSentenceTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tokenize.punkt.PunktSentenceTokenizer.__init__
nltk.tokenize.punkt.PunktSentenceTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
train_text can either be the sole training text for this sentence boundary detector, or can be a PunktParameters object.
-
nltk.tokenize.punkt.PunktSentenceTokenizer._params
nltk.tokenize.punkt.PunktSentenceTokenizer.html#_params
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktSentenceTokenizer.train
nltk.tokenize.punkt.PunktSentenceTokenizer.html#train
ZopeInterfaceFunction
Method
VISIBLE
Derives parameters from a given training text, or uses the parameters given. Repeated calls to this method destroy previous parameters. For incremental training, instantiate a separate PunktTrainer instance.
-
nltk.tokenize.punkt.PunktSentenceTokenizer.tokenize
nltk.tokenize.punkt.PunktSentenceTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Given a text, returns a list of the sentences in that text.
-
nltk.tokenize.punkt.PunktSentenceTokenizer.debug_decisions
nltk.tokenize.punkt.PunktSentenceTokenizer.html#debug_decisions
ZopeInterfaceFunction
Method
VISIBLE
Classifies candidate periods as sentence breaks, yielding a dict for each that may be used to understand why the decision was made.
-
nltk.tokenize.punkt.PunktSentenceTokenizer.span_tokenize
nltk.tokenize.punkt.PunktSentenceTokenizer.html#span_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Given a text, generates (start, end) spans of sentences in the text.
-
nltk.tokenize.punkt.PunktSentenceTokenizer.sentences_from_text
nltk.tokenize.punkt.PunktSentenceTokenizer.html#sentences_from_text
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tokenize.punkt.PunktSentenceTokenizer._slices_from_text
nltk.tokenize.punkt.PunktSentenceTokenizer.html#_slices_from_text
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tokenize.punkt.PunktSentenceTokenizer._realign_boundaries
nltk.tokenize.punkt.PunktSentenceTokenizer.html#_realign_boundaries
ZopeInterfaceFunction
Method
PRIVATE
Attempts to realign punctuation that falls after the period but should otherwise be included in the same sentence.
-
nltk.tokenize.punkt.PunktSentenceTokenizer.text_contains_sentbreak
nltk.tokenize.punkt.PunktSentenceTokenizer.html#text_contains_sentbreak
ZopeInterfaceFunction
Method
VISIBLE
Returns True if the given text includes a sentence break.
-
nltk.tokenize.punkt.PunktSentenceTokenizer.sentences_from_text_legacy
nltk.tokenize.punkt.PunktSentenceTokenizer.html#sentences_from_text_legacy
ZopeInterfaceFunction
Method
VISIBLE
Given a text, generates the sentences in that text. Annotates all tokens, rather than just those with possible sentence breaks. Should produce the same results as sentences_from_text.
-
nltk.tokenize.punkt.PunktSentenceTokenizer.sentences_from_tokens
nltk.tokenize.punkt.PunktSentenceTokenizer.html#sentences_from_tokens
ZopeInterfaceFunction
Method
VISIBLE
Given a sequence of tokens, generates lists of tokens, each list corresponding to a sentence.
-
nltk.tokenize.punkt.PunktSentenceTokenizer._annotate_tokens
nltk.tokenize.punkt.PunktSentenceTokenizer.html#_annotate_tokens
ZopeInterfaceFunction
Method
PRIVATE
Given a set of tokens augmented with markers for line-start and paragraph-start, returns an iterator through those tokens with full annotation including predicted sentence breaks.
-
nltk.tokenize.punkt.PunktSentenceTokenizer._build_sentence_list
nltk.tokenize.punkt.PunktSentenceTokenizer.html#_build_sentence_list
ZopeInterfaceFunction
Method
PRIVATE
Given the original text and the list of augmented word tokens, construct and return a tokenized list of sentence strings.
-
nltk.tokenize.punkt.PunktSentenceTokenizer.dump
nltk.tokenize.punkt.PunktSentenceTokenizer.html#dump
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktSentenceTokenizer.PUNCTUATION
nltk.tokenize.punkt.PunktSentenceTokenizer.html#PUNCTUATION
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.PunktSentenceTokenizer._annotate_second_pass
nltk.tokenize.punkt.PunktSentenceTokenizer.html#_annotate_second_pass
ZopeInterfaceFunction
Method
PRIVATE
Performs a token-based classification (section 4) over the given tokens, making use of the orthographic heuristic (4.1.1), collocation heuristic (4.1.2) and frequent sentence starter heuristic (4.1.3).
-
nltk.tokenize.punkt.PunktSentenceTokenizer._second_pass_annotation
nltk.tokenize.punkt.PunktSentenceTokenizer.html#_second_pass_annotation
ZopeInterfaceFunction
Method
PRIVATE
Performs token-based classification over a pair of contiguous tokens updating the first.
-
nltk.tokenize.punkt.PunktSentenceTokenizer._ortho_heuristic
nltk.tokenize.punkt.PunktSentenceTokenizer.html#_ortho_heuristic
ZopeInterfaceFunction
Method
PRIVATE
Decide whether the given token is the first token in a sentence.
-
nltk.tokenize.punkt.DEBUG_DECISION_FMT
nltk.tokenize.punkt.html#DEBUG_DECISION_FMT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.punkt.format_debug_decision
nltk.tokenize.punkt.html#format_debug_decision
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tokenize.punkt.demo
nltk.tokenize.punkt.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Builds a punkt model and applies it to the same text
-
nltk.tokenize.regexp.RegexpTokenizer
nltk.tokenize.regexp.RegexpTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
A tokenizer that splits a string using a regular expression, which matches either the tokens or the separators between tokens.
-
nltk.tokenize.regexp.RegexpTokenizer.__init__
nltk.tokenize.regexp.RegexpTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.regexp.RegexpTokenizer._pattern
nltk.tokenize.regexp.RegexpTokenizer.html#_pattern
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.regexp.RegexpTokenizer._gaps
nltk.tokenize.regexp.RegexpTokenizer.html#_gaps
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.regexp.RegexpTokenizer._discard_empty
nltk.tokenize.regexp.RegexpTokenizer.html#_discard_empty
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.regexp.RegexpTokenizer._flags
nltk.tokenize.regexp.RegexpTokenizer.html#_flags
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.regexp.RegexpTokenizer._regexp
nltk.tokenize.regexp.RegexpTokenizer.html#_regexp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.regexp.RegexpTokenizer._check_regexp
nltk.tokenize.regexp.RegexpTokenizer.html#_check_regexp
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tokenize.regexp.RegexpTokenizer.tokenize
nltk.tokenize.regexp.RegexpTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.regexp.RegexpTokenizer.span_tokenize
nltk.tokenize.regexp.RegexpTokenizer.html#span_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Identify the tokens using integer offsets (start_i, end_i), where s[start_i:end_i] is the corresponding token.
-
nltk.tokenize.regexp.RegexpTokenizer.__repr__
nltk.tokenize.regexp.RegexpTokenizer.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.regexp.WhitespaceTokenizer
nltk.tokenize.regexp.WhitespaceTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Tokenize a string on whitespace (space, tab, newline). In general, users should use the string split() method instead.
-
nltk.tokenize.regexp.WhitespaceTokenizer.__init__
nltk.tokenize.regexp.WhitespaceTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.regexp.BlanklineTokenizer
nltk.tokenize.regexp.BlanklineTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Tokenize a string, treating any sequence of blank lines as a delimiter. Blank lines are defined as lines containing no characters, except for space or tab characters.
-
nltk.tokenize.regexp.BlanklineTokenizer.__init__
nltk.tokenize.regexp.BlanklineTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.regexp.WordPunctTokenizer
nltk.tokenize.regexp.WordPunctTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Tokenize a text into a sequence of alphabetic and non-alphabetic characters, using the regexp \w+|[^\w\s]+.
-
nltk.tokenize.regexp.WordPunctTokenizer.__init__
nltk.tokenize.regexp.WordPunctTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.regexp.regexp_tokenize
nltk.tokenize.regexp.html#regexp_tokenize
ZopeInterfaceFunction
Function
VISIBLE
-
nltk.tokenize.regexp.blankline_tokenize
nltk.tokenize.regexp.html#blankline_tokenize
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.regexp.wordpunct_tokenize
nltk.tokenize.regexp.html#wordpunct_tokenize
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.repp.ReppTokenizer
nltk.tokenize.repp.ReppTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.tokenize.repp.ReppTokenizer.__init__
nltk.tokenize.repp.ReppTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.repp.ReppTokenizer.repp_dir
nltk.tokenize.repp.ReppTokenizer.html#repp_dir
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.repp.ReppTokenizer.working_dir
nltk.tokenize.repp.ReppTokenizer.html#working_dir
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.repp.ReppTokenizer.encoding
nltk.tokenize.repp.ReppTokenizer.html#encoding
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.repp.ReppTokenizer.tokenize
nltk.tokenize.repp.ReppTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Use Repp to tokenize a single sentence.
-
nltk.tokenize.repp.ReppTokenizer.tokenize_sents
nltk.tokenize.repp.ReppTokenizer.html#tokenize_sents
ZopeInterfaceFunction
Method
VISIBLE
Tokenize multiple sentences using Repp.
-
nltk.tokenize.repp.ReppTokenizer.generate_repp_command
nltk.tokenize.repp.ReppTokenizer.html#generate_repp_command
ZopeInterfaceFunction
Method
VISIBLE
This module generates the REPP command to be used at the terminal.
-
nltk.tokenize.repp.ReppTokenizer._execute
nltk.tokenize.repp.ReppTokenizer.html#_execute
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.tokenize.repp.ReppTokenizer.parse_repp_outputs
nltk.tokenize.repp.ReppTokenizer.html#parse_repp_outputs
ZopeInterfaceFunction
Static Method
VISIBLE
This module parses the tri-tuple format that REPP outputs using the "--format triple" option and returns an generator with tuple of string tokens.
-
nltk.tokenize.repp.ReppTokenizer.find_repptokenizer
nltk.tokenize.repp.ReppTokenizer.html#find_repptokenizer
ZopeInterfaceFunction
Method
VISIBLE
A module to find REPP tokenizer binary and its repp.set config file.
-
nltk.tokenize.sexpr.SExprTokenizer
nltk.tokenize.sexpr.SExprTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
A tokenizer that divides strings into s-expressions. An s-expresion can be either:
-
nltk.tokenize.sexpr.SExprTokenizer.__init__
nltk.tokenize.sexpr.SExprTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.sexpr.SExprTokenizer._strict
nltk.tokenize.sexpr.SExprTokenizer.html#_strict
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.sexpr.SExprTokenizer._open_paren
nltk.tokenize.sexpr.SExprTokenizer.html#_open_paren
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.sexpr.SExprTokenizer._close_paren
nltk.tokenize.sexpr.SExprTokenizer.html#_close_paren
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.sexpr.SExprTokenizer._paren_regexp
nltk.tokenize.sexpr.SExprTokenizer.html#_paren_regexp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.sexpr.SExprTokenizer.tokenize
nltk.tokenize.sexpr.SExprTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a list of s-expressions extracted from text. For example:
-
nltk.tokenize.sexpr.sexpr_tokenize
nltk.tokenize.sexpr.html#sexpr_tokenize
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.simple.SpaceTokenizer
nltk.tokenize.simple.SpaceTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Tokenize a string using the space character as a delimiter, which is the same as s.split(' ').
-
nltk.tokenize.simple.SpaceTokenizer._string
nltk.tokenize.simple.SpaceTokenizer.html#_string
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.simple.TabTokenizer
nltk.tokenize.simple.TabTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Tokenize a string use the tab character as a delimiter, the same as s.split('\t').
-
nltk.tokenize.simple.TabTokenizer._string
nltk.tokenize.simple.TabTokenizer.html#_string
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.simple.CharTokenizer
nltk.tokenize.simple.CharTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Tokenize a string into individual characters. If this functionality is ever required directly, use for char in string.
-
nltk.tokenize.simple.CharTokenizer.tokenize
nltk.tokenize.simple.CharTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.simple.CharTokenizer.span_tokenize
nltk.tokenize.simple.CharTokenizer.html#span_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Identify the tokens using integer offsets (start_i, end_i), where s[start_i:end_i] is the corresponding token.
-
nltk.tokenize.simple.LineTokenizer
nltk.tokenize.simple.LineTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Tokenize a string into its lines, optionally discarding blank lines. This is similar to s.split('\n').
-
nltk.tokenize.simple.LineTokenizer.__init__
nltk.tokenize.simple.LineTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.simple.LineTokenizer._blanklines
nltk.tokenize.simple.LineTokenizer.html#_blanklines
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.simple.LineTokenizer.tokenize
nltk.tokenize.simple.LineTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.simple.LineTokenizer.span_tokenize
nltk.tokenize.simple.LineTokenizer.html#span_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Identify the tokens using integer offsets (start_i, end_i), where s[start_i:end_i] is the corresponding token.
-
nltk.tokenize.simple.line_tokenize
nltk.tokenize.simple.html#line_tokenize
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.BLOCK_COMPARISON
nltk.tokenize.texttiling.html#BLOCK_COMPARISON
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.VOCABULARY_INTRODUCTION
nltk.tokenize.texttiling.html#VOCABULARY_INTRODUCTION
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.LC
nltk.tokenize.texttiling.html#LC
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.HC
nltk.tokenize.texttiling.html#HC
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.DEFAULT_SMOOTHING
nltk.tokenize.texttiling.html#DEFAULT_SMOOTHING
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.TextTilingTokenizer
nltk.tokenize.texttiling.TextTilingTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Tokenize a document into topical sections using the TextTiling algorithm. This algorithm detects subtopic shifts based on the analysis of lexical co-occurrence patterns.
-
nltk.tokenize.texttiling.TextTilingTokenizer.__init__
nltk.tokenize.texttiling.TextTilingTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.TextTilingTokenizer.tokenize
nltk.tokenize.texttiling.TextTilingTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of text, where each "token" represents a separate topic.
-
nltk.tokenize.texttiling.TextTilingTokenizer._block_comparison
nltk.tokenize.texttiling.TextTilingTokenizer.html#_block_comparison
ZopeInterfaceFunction
Method
PRIVATE
Implements the block comparison method
-
nltk.tokenize.texttiling.TextTilingTokenizer._smooth_scores
nltk.tokenize.texttiling.TextTilingTokenizer.html#_smooth_scores
ZopeInterfaceFunction
Method
PRIVATE
Wraps the smooth function from the SciPy Cookbook
-
nltk.tokenize.texttiling.TextTilingTokenizer._mark_paragraph_breaks
nltk.tokenize.texttiling.TextTilingTokenizer.html#_mark_paragraph_breaks
ZopeInterfaceFunction
Method
PRIVATE
Identifies indented text or line breaks as the beginning of paragraphs
-
nltk.tokenize.texttiling.TextTilingTokenizer._divide_to_tokensequences
nltk.tokenize.texttiling.TextTilingTokenizer.html#_divide_to_tokensequences
ZopeInterfaceFunction
Method
PRIVATE
Divides the text into pseudosentences of fixed size
-
nltk.tokenize.texttiling.TextTilingTokenizer._create_token_table
nltk.tokenize.texttiling.TextTilingTokenizer.html#_create_token_table
ZopeInterfaceFunction
Method
PRIVATE
Creates a table of TokenTableFields
-
nltk.tokenize.texttiling.TextTilingTokenizer._identify_boundaries
nltk.tokenize.texttiling.TextTilingTokenizer.html#_identify_boundaries
ZopeInterfaceFunction
Method
PRIVATE
Identifies boundaries at the peaks of similarity score differences
-
nltk.tokenize.texttiling.TextTilingTokenizer._depth_scores
nltk.tokenize.texttiling.TextTilingTokenizer.html#_depth_scores
ZopeInterfaceFunction
Method
PRIVATE
Calculates the depth of each gap, i.e. the average difference between the left and right peaks and the gap's score
-
nltk.tokenize.texttiling.TextTilingTokenizer._normalize_boundaries
nltk.tokenize.texttiling.TextTilingTokenizer.html#_normalize_boundaries
ZopeInterfaceFunction
Method
PRIVATE
Normalize the boundaries identified to the original text's paragraph breaks
-
nltk.tokenize.texttiling.TokenTableField
nltk.tokenize.texttiling.TokenTableField.html
ZopeInterfaceClass
Class
VISIBLE
A field in the token table holding parameters for each token, used later in the process
-
nltk.tokenize.texttiling.TokenTableField.__init__
nltk.tokenize.texttiling.TokenTableField.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.TokenSequence
nltk.tokenize.texttiling.TokenSequence.html
ZopeInterfaceClass
Class
VISIBLE
A token list with its original length and its index
-
nltk.tokenize.texttiling.TokenSequence.__init__
nltk.tokenize.texttiling.TokenSequence.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.texttiling.smooth
nltk.tokenize.texttiling.html#smooth
ZopeInterfaceFunction
Function
VISIBLE
smooth the data using a window with requested size.
-
nltk.tokenize.texttiling.demo
nltk.tokenize.texttiling.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer
nltk.tokenize.toktok.ToktokTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.tokenize.toktok.ToktokTokenizer.NON_BREAKING
nltk.tokenize.toktok.ToktokTokenizer.html#NON_BREAKING
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.FUNKY_PUNCT_1
nltk.tokenize.toktok.ToktokTokenizer.html#FUNKY_PUNCT_1
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.FUNKY_PUNCT_2
nltk.tokenize.toktok.ToktokTokenizer.html#FUNKY_PUNCT_2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.EN_EM_DASHES
nltk.tokenize.toktok.ToktokTokenizer.html#EN_EM_DASHES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.AMPERCENT
nltk.tokenize.toktok.ToktokTokenizer.html#AMPERCENT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.TAB
nltk.tokenize.toktok.ToktokTokenizer.html#TAB
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.PIPE
nltk.tokenize.toktok.ToktokTokenizer.html#PIPE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.COMMA_IN_NUM
nltk.tokenize.toktok.ToktokTokenizer.html#COMMA_IN_NUM
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.PROB_SINGLE_QUOTES
nltk.tokenize.toktok.ToktokTokenizer.html#PROB_SINGLE_QUOTES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.STUPID_QUOTES_1
nltk.tokenize.toktok.ToktokTokenizer.html#STUPID_QUOTES_1
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.STUPID_QUOTES_2
nltk.tokenize.toktok.ToktokTokenizer.html#STUPID_QUOTES_2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.FINAL_PERIOD_1
nltk.tokenize.toktok.ToktokTokenizer.html#FINAL_PERIOD_1
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.FINAL_PERIOD_2
nltk.tokenize.toktok.ToktokTokenizer.html#FINAL_PERIOD_2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.MULTI_COMMAS
nltk.tokenize.toktok.ToktokTokenizer.html#MULTI_COMMAS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.MULTI_DASHES
nltk.tokenize.toktok.ToktokTokenizer.html#MULTI_DASHES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.MULTI_DOTS
nltk.tokenize.toktok.ToktokTokenizer.html#MULTI_DOTS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.OPEN_PUNCT
nltk.tokenize.toktok.ToktokTokenizer.html#OPEN_PUNCT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.CLOSE_PUNCT
nltk.tokenize.toktok.ToktokTokenizer.html#CLOSE_PUNCT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.CURRENCY_SYM
nltk.tokenize.toktok.ToktokTokenizer.html#CURRENCY_SYM
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.OPEN_PUNCT_RE
nltk.tokenize.toktok.ToktokTokenizer.html#OPEN_PUNCT_RE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.CLOSE_PUNCT_RE
nltk.tokenize.toktok.ToktokTokenizer.html#CLOSE_PUNCT_RE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.CURRENCY_SYM_RE
nltk.tokenize.toktok.ToktokTokenizer.html#CURRENCY_SYM_RE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.URL_FOE_1
nltk.tokenize.toktok.ToktokTokenizer.html#URL_FOE_1
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.URL_FOE_2
nltk.tokenize.toktok.ToktokTokenizer.html#URL_FOE_2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.URL_FOE_3
nltk.tokenize.toktok.ToktokTokenizer.html#URL_FOE_3
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.URL_FOE_4
nltk.tokenize.toktok.ToktokTokenizer.html#URL_FOE_4
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.LSTRIP
nltk.tokenize.toktok.ToktokTokenizer.html#LSTRIP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.RSTRIP
nltk.tokenize.toktok.ToktokTokenizer.html#RSTRIP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.ONE_SPACE
nltk.tokenize.toktok.ToktokTokenizer.html#ONE_SPACE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.TOKTOK_REGEXES
nltk.tokenize.toktok.ToktokTokenizer.html#TOKTOK_REGEXES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.toktok.ToktokTokenizer.tokenize
nltk.tokenize.toktok.ToktokTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.treebank.TreebankWordTokenizer
nltk.tokenize.treebank.TreebankWordTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
The Treebank tokenizer uses regular expressions to tokenize text as in Penn Treebank. This is the method that is invoked by word_tokenize(). It assumes that the text has already been segmented into sentences, e.g. using sent_tokenize().
-
nltk.tokenize.treebank.TreebankWordTokenizer.STARTING_QUOTES
nltk.tokenize.treebank.TreebankWordTokenizer.html#STARTING_QUOTES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer.PUNCTUATION
nltk.tokenize.treebank.TreebankWordTokenizer.html#PUNCTUATION
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer.PARENS_BRACKETS
nltk.tokenize.treebank.TreebankWordTokenizer.html#PARENS_BRACKETS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer.CONVERT_PARENTHESES
nltk.tokenize.treebank.TreebankWordTokenizer.html#CONVERT_PARENTHESES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer.DOUBLE_DASHES
nltk.tokenize.treebank.TreebankWordTokenizer.html#DOUBLE_DASHES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer.ENDING_QUOTES
nltk.tokenize.treebank.TreebankWordTokenizer.html#ENDING_QUOTES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer._contractions
nltk.tokenize.treebank.TreebankWordTokenizer.html#_contractions
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer.CONTRACTIONS2
nltk.tokenize.treebank.TreebankWordTokenizer.html#CONTRACTIONS2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer.CONTRACTIONS3
nltk.tokenize.treebank.TreebankWordTokenizer.html#CONTRACTIONS3
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordTokenizer.tokenize
nltk.tokenize.treebank.TreebankWordTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.treebank.TreebankWordTokenizer.span_tokenize
nltk.tokenize.treebank.TreebankWordTokenizer.html#span_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Uses the post-hoc nltk.tokens.align_tokens to return the offset spans.
-
nltk.tokenize.treebank.TreebankWordDetokenizer
nltk.tokenize.treebank.TreebankWordDetokenizer.html
ZopeInterfaceClass
Class
VISIBLE
The Treebank detokenizer uses the reverse regex operations corresponding to the Treebank tokenizer's regexes.
-
nltk.tokenize.treebank.TreebankWordDetokenizer._contractions
nltk.tokenize.treebank.TreebankWordDetokenizer.html#_contractions
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.CONTRACTIONS2
nltk.tokenize.treebank.TreebankWordDetokenizer.html#CONTRACTIONS2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.CONTRACTIONS3
nltk.tokenize.treebank.TreebankWordDetokenizer.html#CONTRACTIONS3
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.ENDING_QUOTES
nltk.tokenize.treebank.TreebankWordDetokenizer.html#ENDING_QUOTES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.DOUBLE_DASHES
nltk.tokenize.treebank.TreebankWordDetokenizer.html#DOUBLE_DASHES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.CONVERT_PARENTHESES
nltk.tokenize.treebank.TreebankWordDetokenizer.html#CONVERT_PARENTHESES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.PARENS_BRACKETS
nltk.tokenize.treebank.TreebankWordDetokenizer.html#PARENS_BRACKETS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.PUNCTUATION
nltk.tokenize.treebank.TreebankWordDetokenizer.html#PUNCTUATION
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.STARTING_QUOTES
nltk.tokenize.treebank.TreebankWordDetokenizer.html#STARTING_QUOTES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.treebank.TreebankWordDetokenizer.tokenize
nltk.tokenize.treebank.TreebankWordDetokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Treebank detokenizer, created by undoing the regexes from the TreebankWordTokenizer.tokenize.
-
nltk.tokenize.treebank.TreebankWordDetokenizer.detokenize
nltk.tokenize.treebank.TreebankWordDetokenizer.html#detokenize
ZopeInterfaceFunction
Method
VISIBLE
Duck-typing the abstract tokenize().
-
nltk.tokenize.stanford_segmenter._stanford_url
nltk.tokenize.stanford_segmenter.html#_stanford_url
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html
ZopeInterfaceClass
Class
VISIBLE
Interface to the Stanford Segmenter
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._JAR
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_JAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter.__init__
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._stanford_jar
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_stanford_jar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._java_class
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_java_class
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._model
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_model
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._sihan_corpora_dict
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_sihan_corpora_dict
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._sihan_post_processing
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_sihan_post_processing
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._keep_whitespaces
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_keep_whitespaces
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._dict
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_dict
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._encoding
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter.java_options
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#java_options
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._options_cmd
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_options_cmd
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter.default_config
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#default_config
ZopeInterfaceFunction
Method
VISIBLE
Attempt to intialize Stanford Word Segmenter for the specified language using the STANFORD_SEGMENTER and STANFORD_MODELS environment variables
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter.tokenize
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter.segment_file
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#segment_file
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter.segment
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#segment
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter.segment_sents
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#segment_sents
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._input_file_path
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_input_file_path
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford_segmenter.StanfordSegmenter._execute
nltk.tokenize.stanford_segmenter.StanfordSegmenter.html#_execute
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.tokenize.sonority_sequencing.SyllableTokenizer
nltk.tokenize.sonority_sequencing.SyllableTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Syllabifies words based on the Sonority Sequencing Principle (SSP).
-
nltk.tokenize.sonority_sequencing.SyllableTokenizer.__init__
nltk.tokenize.sonority_sequencing.SyllableTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tokenize.sonority_sequencing.SyllableTokenizer.vowels
nltk.tokenize.sonority_sequencing.SyllableTokenizer.html#vowels
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.sonority_sequencing.SyllableTokenizer.phoneme_map
nltk.tokenize.sonority_sequencing.SyllableTokenizer.html#phoneme_map
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.sonority_sequencing.SyllableTokenizer.assign_values
nltk.tokenize.sonority_sequencing.SyllableTokenizer.html#assign_values
ZopeInterfaceFunction
Method
VISIBLE
Assigns each phoneme its value from the sonority hierarchy. Note: Sentence/text has to be tokenized first.
-
nltk.tokenize.sonority_sequencing.SyllableTokenizer.validate_syllables
nltk.tokenize.sonority_sequencing.SyllableTokenizer.html#validate_syllables
ZopeInterfaceFunction
Method
VISIBLE
Ensures each syllable has at least one vowel. If the following syllable doesn't have vowel, add it to the current one.
-
nltk.tokenize.sonority_sequencing.SyllableTokenizer.tokenize
nltk.tokenize.sonority_sequencing.SyllableTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Apply the SSP to return a list of syllables. Note: Sentence/text has to be tokenized first.
-
nltk.tokenize.legality_principle.LegalitySyllableTokenizer
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Syllabifies words based on the Legality Principle and Onset Maximization.
-
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.__init__
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.legal_frequency_threshold
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.html#legal_frequency_threshold
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.vowels
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.html#vowels
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.legal_onsets
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.html#legal_onsets
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.find_legal_onsets
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.html#find_legal_onsets
ZopeInterfaceFunction
Method
VISIBLE
Gathers all onsets and then return only those above the frequency threshold
-
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.onset
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.html#onset
ZopeInterfaceFunction
Method
VISIBLE
Returns consonant cluster of word, i.e. all characters until the first vowel.
-
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.tokenize
nltk.tokenize.legality_principle.LegalitySyllableTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Apply the Legality Principle in combination with Onset Maximization to return a list of syllables.
-
nltk.tokenize.sent_tokenize
nltk.tokenize.html#sent_tokenize
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.tokenize._treebank_word_tokenizer
nltk.tokenize.html#_treebank_word_tokenizer
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tokenize.word_tokenize
nltk.tokenize.html#word_tokenize
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.corpus.util.TRY_ZIPFILE_FIRST
nltk.corpus.util.html#TRY_ZIPFILE_FIRST
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader
nltk.corpus.util.LazyCorpusLoader.html
ZopeInterfaceClass
Class
VISIBLE
To see the API documentation for this lazily loaded corpus, first run corpus.ensure_loaded(), and then run help(this_corpus).
-
nltk.corpus.util.LazyCorpusLoader.__init__
nltk.corpus.util.LazyCorpusLoader.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__name
nltk.corpus.util.LazyCorpusLoader.html#__name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__name__
nltk.corpus.util.LazyCorpusLoader.html#__name__
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__reader_cls
nltk.corpus.util.LazyCorpusLoader.html#__reader_cls
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.subdir
nltk.corpus.util.LazyCorpusLoader.html#subdir
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__args
nltk.corpus.util.LazyCorpusLoader.html#__args
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__kwargs
nltk.corpus.util.LazyCorpusLoader.html#__kwargs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__load
nltk.corpus.util.LazyCorpusLoader.html#__load
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__dict__
nltk.corpus.util.LazyCorpusLoader.html#__dict__
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__class__
nltk.corpus.util.LazyCorpusLoader.html#__class__
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__getattr__
nltk.corpus.util.LazyCorpusLoader.html#__getattr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader.__repr__
nltk.corpus.util.LazyCorpusLoader.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader._unload 0
nltk.corpus.util.LazyCorpusLoader.html#_unload%200
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.corpus.util.LazyCorpusLoader._unload
nltk.corpus.util.LazyCorpusLoader.html#_unload
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.util._make_bound_method
nltk.corpus.util.html#_make_bound_method
ZopeInterfaceFunction
Function
PRIVATE
Magic for creating bound methods (used for _unload).
-
nltk.corpus.abc
nltk.corpus.html#abc
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.alpino
nltk.corpus.html#alpino
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.brown
nltk.corpus.html#brown
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.cess_cat
nltk.corpus.html#cess_cat
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.cess_esp
nltk.corpus.html#cess_esp
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.cmudict
nltk.corpus.html#cmudict
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.comtrans
nltk.corpus.html#comtrans
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.comparative_sentences
nltk.corpus.html#comparative_sentences
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.conll2000
nltk.corpus.html#conll2000
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.conll2002
nltk.corpus.html#conll2002
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.conll2007
nltk.corpus.html#conll2007
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.crubadan
nltk.corpus.html#crubadan
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.dependency_treebank
nltk.corpus.html#dependency_treebank
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.floresta
nltk.corpus.html#floresta
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.framenet15
nltk.corpus.html#framenet15
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.framenet
nltk.corpus.html#framenet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.gazetteers
nltk.corpus.html#gazetteers
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.genesis
nltk.corpus.html#genesis
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.gutenberg
nltk.corpus.html#gutenberg
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.ieer
nltk.corpus.html#ieer
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.inaugural
nltk.corpus.html#inaugural
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.indian
nltk.corpus.html#indian
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.jeita
nltk.corpus.html#jeita
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.knbc
nltk.corpus.html#knbc
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.lin_thesaurus
nltk.corpus.html#lin_thesaurus
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.mac_morpho
nltk.corpus.html#mac_morpho
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.machado
nltk.corpus.html#machado
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.masc_tagged
nltk.corpus.html#masc_tagged
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.movie_reviews
nltk.corpus.html#movie_reviews
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.multext_east
nltk.corpus.html#multext_east
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.names
nltk.corpus.html#names
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.nps_chat
nltk.corpus.html#nps_chat
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.opinion_lexicon
nltk.corpus.html#opinion_lexicon
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.ppattach
nltk.corpus.html#ppattach
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.product_reviews_1
nltk.corpus.html#product_reviews_1
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.product_reviews_2
nltk.corpus.html#product_reviews_2
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.pros_cons
nltk.corpus.html#pros_cons
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.ptb
nltk.corpus.html#ptb
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.qc
nltk.corpus.html#qc
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.reuters
nltk.corpus.html#reuters
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.rte
nltk.corpus.html#rte
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.senseval
nltk.corpus.html#senseval
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.sentence_polarity
nltk.corpus.html#sentence_polarity
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.sentiwordnet
nltk.corpus.html#sentiwordnet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.shakespeare
nltk.corpus.html#shakespeare
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.sinica_treebank
nltk.corpus.html#sinica_treebank
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.state_union
nltk.corpus.html#state_union
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.stopwords
nltk.corpus.html#stopwords
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.subjectivity
nltk.corpus.html#subjectivity
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.swadesh
nltk.corpus.html#swadesh
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.swadesh110
nltk.corpus.html#swadesh110
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.swadesh207
nltk.corpus.html#swadesh207
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.switchboard
nltk.corpus.html#switchboard
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.timit
nltk.corpus.html#timit
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.timit_tagged
nltk.corpus.html#timit_tagged
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.toolbox
nltk.corpus.html#toolbox
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.treebank
nltk.corpus.html#treebank
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.treebank_chunk
nltk.corpus.html#treebank_chunk
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.treebank_raw
nltk.corpus.html#treebank_raw
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.udhr
nltk.corpus.html#udhr
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.udhr2
nltk.corpus.html#udhr2
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.universal_treebanks
nltk.corpus.html#universal_treebanks
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.verbnet
nltk.corpus.html#verbnet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.webtext
nltk.corpus.html#webtext
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.wordnet
nltk.corpus.html#wordnet
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.wordnet_ic
nltk.corpus.html#wordnet_ic
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.words
nltk.corpus.html#words
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.propbank
nltk.corpus.html#propbank
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.nombank
nltk.corpus.html#nombank
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.propbank_ptb
nltk.corpus.html#propbank_ptb
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.nombank_ptb
nltk.corpus.html#nombank_ptb
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.semcor
nltk.corpus.html#semcor
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.nonbreaking_prefixes
nltk.corpus.html#nonbreaking_prefixes
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.perluniprops
nltk.corpus.html#perluniprops
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.demo
nltk.corpus.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.draw.dispersion.words
nltk.draw.dispersion.html#words
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.chartparser_app.EdgeList
nltk.app.chartparser_app.EdgeList.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.chartparser_app.EdgeList.ARROW
nltk.app.chartparser_app.EdgeList.html#ARROW
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.app.chartparser_app.EdgeList._init_colortags
nltk.app.chartparser_app.EdgeList.html#_init_colortags
ZopeInterfaceFunction
Method
PRIVATE
Set up any colortags that will be used by this colorized list. E.g.: >>> textwidget.tag_config('terminal', foreground='black')
-
nltk.app.chartparser_app.EdgeList._item_repr
nltk.app.chartparser_app.EdgeList.html#_item_repr
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.app.chartparser_app.ChartMatrixView
nltk.app.chartparser_app.ChartMatrixView.html
ZopeInterfaceClass
Class
VISIBLE
A view of a chart that displays the contents of the corresponding matrix.
-
nltk.app.chartparser_app.ChartMatrixView.__init__
nltk.app.chartparser_app.ChartMatrixView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._chart
nltk.app.chartparser_app.ChartMatrixView.html#_chart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._cells
nltk.app.chartparser_app.ChartMatrixView.html#_cells
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._marks
nltk.app.chartparser_app.ChartMatrixView.html#_marks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._selected_cell
nltk.app.chartparser_app.ChartMatrixView.html#_selected_cell
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._root
nltk.app.chartparser_app.ChartMatrixView.html#_root
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._numedges_label
nltk.app.chartparser_app.ChartMatrixView.html#_numedges_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._callbacks
nltk.app.chartparser_app.ChartMatrixView.html#_callbacks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._num_edges
nltk.app.chartparser_app.ChartMatrixView.html#_num_edges
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._init_quit
nltk.app.chartparser_app.ChartMatrixView.html#_init_quit
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._init_matrix
nltk.app.chartparser_app.ChartMatrixView.html#_init_matrix
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._canvas
nltk.app.chartparser_app.ChartMatrixView.html#_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._init_numedges
nltk.app.chartparser_app.ChartMatrixView.html#_init_numedges
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._init_list
nltk.app.chartparser_app.ChartMatrixView.html#_init_list
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._list
nltk.app.chartparser_app.ChartMatrixView.html#_list
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.destroy
nltk.app.chartparser_app.ChartMatrixView.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.set_chart
nltk.app.chartparser_app.ChartMatrixView.html#set_chart
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.update
nltk.app.chartparser_app.ChartMatrixView.html#update
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.activate
nltk.app.chartparser_app.ChartMatrixView.html#activate
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.inactivate
nltk.app.chartparser_app.ChartMatrixView.html#inactivate
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.add_callback
nltk.app.chartparser_app.ChartMatrixView.html#add_callback
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.remove_callback
nltk.app.chartparser_app.ChartMatrixView.html#remove_callback
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._fire_callbacks
nltk.app.chartparser_app.ChartMatrixView.html#_fire_callbacks
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.select_cell
nltk.app.chartparser_app.ChartMatrixView.html#select_cell
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.deselect_cell
nltk.app.chartparser_app.ChartMatrixView.html#deselect_cell
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView._click_cell
nltk.app.chartparser_app.ChartMatrixView.html#_click_cell
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.view_edge
nltk.app.chartparser_app.ChartMatrixView.html#view_edge
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.mark_edge
nltk.app.chartparser_app.ChartMatrixView.html#mark_edge
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.unmark_edge
nltk.app.chartparser_app.ChartMatrixView.html#unmark_edge
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.markonly_edge
nltk.app.chartparser_app.ChartMatrixView.html#markonly_edge
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.draw
nltk.app.chartparser_app.ChartMatrixView.html#draw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartMatrixView.pack
nltk.app.chartparser_app.ChartMatrixView.html#pack
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView
nltk.app.chartparser_app.ChartResultsView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.__init__
nltk.app.chartparser_app.ChartResultsView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._chart
nltk.app.chartparser_app.ChartResultsView.html#_chart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._grammar
nltk.app.chartparser_app.ChartResultsView.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._trees
nltk.app.chartparser_app.ChartResultsView.html#_trees
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._y
nltk.app.chartparser_app.ChartResultsView.html#_y
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._treewidgets
nltk.app.chartparser_app.ChartResultsView.html#_treewidgets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._selection
nltk.app.chartparser_app.ChartResultsView.html#_selection
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._selectbox
nltk.app.chartparser_app.ChartResultsView.html#_selectbox
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._root
nltk.app.chartparser_app.ChartResultsView.html#_root
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._cframe
nltk.app.chartparser_app.ChartResultsView.html#_cframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.update
nltk.app.chartparser_app.ChartResultsView.html#update
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._add
nltk.app.chartparser_app.ChartResultsView.html#_add
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._click
nltk.app.chartparser_app.ChartResultsView.html#_click
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView._color
nltk.app.chartparser_app.ChartResultsView.html#_color
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.print_all
nltk.app.chartparser_app.ChartResultsView.html#print_all
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.print_selection
nltk.app.chartparser_app.ChartResultsView.html#print_selection
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.clear
nltk.app.chartparser_app.ChartResultsView.html#clear
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.set_chart
nltk.app.chartparser_app.ChartResultsView.html#set_chart
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.set_grammar
nltk.app.chartparser_app.ChartResultsView.html#set_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.destroy
nltk.app.chartparser_app.ChartResultsView.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartResultsView.pack
nltk.app.chartparser_app.ChartResultsView.html#pack
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer
nltk.app.chartparser_app.ChartComparer.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.app.chartparser_app.ChartComparer._root
nltk.app.chartparser_app.ChartComparer.html#_root
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The root window
-
nltk.app.chartparser_app.ChartComparer._charts
nltk.app.chartparser_app.ChartComparer.html#_charts
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A dictionary mapping names to charts. When
charts are loaded, they are added to this dictionary.
-
nltk.app.chartparser_app.ChartComparer._left_chart
nltk.app.chartparser_app.ChartComparer.html#_left_chart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The left Chart.
-
nltk.app.chartparser_app.ChartComparer._left_name
nltk.app.chartparser_app.ChartComparer.html#_left_name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The name _left_chart (derived from filename)
-
nltk.app.chartparser_app.ChartComparer._left_matrix
nltk.app.chartparser_app.ChartComparer.html#_left_matrix
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The ChartMatrixView for _left_chart
-
nltk.app.chartparser_app.ChartComparer._left_selector
nltk.app.chartparser_app.ChartComparer.html#_left_selector
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The drop-down MutableOptionsMenu used
to select _left_chart.
-
nltk.app.chartparser_app.ChartComparer._right_chart
nltk.app.chartparser_app.ChartComparer.html#_right_chart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The right Chart.
-
nltk.app.chartparser_app.ChartComparer._right_name
nltk.app.chartparser_app.ChartComparer.html#_right_name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The name _right_chart (derived from filename)
-
nltk.app.chartparser_app.ChartComparer._right_matrix
nltk.app.chartparser_app.ChartComparer.html#_right_matrix
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The ChartMatrixView for _right_chart
-
nltk.app.chartparser_app.ChartComparer._right_selector
nltk.app.chartparser_app.ChartComparer.html#_right_selector
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The drop-down MutableOptionsMenu used
to select _right_chart.
-
nltk.app.chartparser_app.ChartComparer._out_chart
nltk.app.chartparser_app.ChartComparer.html#_out_chart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The out Chart.
-
nltk.app.chartparser_app.ChartComparer._out_name
nltk.app.chartparser_app.ChartComparer.html#_out_name
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The name _out_chart (derived from filename)
-
nltk.app.chartparser_app.ChartComparer._out_matrix
nltk.app.chartparser_app.ChartComparer.html#_out_matrix
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The ChartMatrixView for _out_chart
-
nltk.app.chartparser_app.ChartComparer._out_label
nltk.app.chartparser_app.ChartComparer.html#_out_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The label for _out_chart.
-
nltk.app.chartparser_app.ChartComparer._op_label
nltk.app.chartparser_app.ChartComparer.html#_op_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A Label containing the most recent operation.
-
nltk.app.chartparser_app.ChartComparer._OPSYMBOL
nltk.app.chartparser_app.ChartComparer.html#_OPSYMBOL
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.__init__
nltk.app.chartparser_app.ChartComparer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._emptychart
nltk.app.chartparser_app.ChartComparer.html#_emptychart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._operator
nltk.app.chartparser_app.ChartComparer.html#_operator
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.destroy
nltk.app.chartparser_app.ChartComparer.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.mainloop
nltk.app.chartparser_app.ChartComparer.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._init_divider
nltk.app.chartparser_app.ChartComparer.html#_init_divider
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._init_chartviews
nltk.app.chartparser_app.ChartComparer.html#_init_chartviews
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._init_buttons
nltk.app.chartparser_app.ChartComparer.html#_init_buttons
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._init_bindings
nltk.app.chartparser_app.ChartComparer.html#_init_bindings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._select_left
nltk.app.chartparser_app.ChartComparer.html#_select_left
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._select_right
nltk.app.chartparser_app.ChartComparer.html#_select_right
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._apply_op
nltk.app.chartparser_app.ChartComparer.html#_apply_op
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.CHART_FILE_TYPES
nltk.app.chartparser_app.ChartComparer.html#CHART_FILE_TYPES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.save_chart_dialog
nltk.app.chartparser_app.ChartComparer.html#save_chart_dialog
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.load_chart_dialog
nltk.app.chartparser_app.ChartComparer.html#load_chart_dialog
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.load_chart
nltk.app.chartparser_app.ChartComparer.html#load_chart
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._update_chartviews
nltk.app.chartparser_app.ChartComparer.html#_update_chartviews
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.select_edge
nltk.app.chartparser_app.ChartComparer.html#select_edge
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer.select_cell
nltk.app.chartparser_app.ChartComparer.html#select_cell
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._difference
nltk.app.chartparser_app.ChartComparer.html#_difference
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._intersection
nltk.app.chartparser_app.ChartComparer.html#_intersection
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._union
nltk.app.chartparser_app.ChartComparer.html#_union
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._swapcharts
nltk.app.chartparser_app.ChartComparer.html#_swapcharts
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._checkcompat
nltk.app.chartparser_app.ChartComparer.html#_checkcompat
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._update
nltk.app.chartparser_app.ChartComparer.html#_update
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._clear_out_chart
nltk.app.chartparser_app.ChartComparer.html#_clear_out_chart
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartComparer._detatch_out
nltk.app.chartparser_app.ChartComparer.html#_detatch_out
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView
nltk.app.chartparser_app.ChartView.html
ZopeInterfaceClass
Class
VISIBLE
A component for viewing charts. This is used by ChartParserApp to allow students to interactively experiment with various chart parsing techniques. It is also used by Chart.draw().
-
nltk.app.chartparser_app.ChartView._chart
nltk.app.chartparser_app.ChartView.html#_chart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The chart that we are giving a view of. This chart
may be modified; after it is modified, you should call
update.
-
nltk.app.chartparser_app.ChartView._sentence
nltk.app.chartparser_app.ChartView.html#_sentence
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The list of tokens that the chart spans.
-
nltk.app.chartparser_app.ChartView._root
nltk.app.chartparser_app.ChartView.html#_root
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The root window.
-
nltk.app.chartparser_app.ChartView._chart_canvas
nltk.app.chartparser_app.ChartView.html#_chart_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The canvas we're using to display the chart
itself.
-
nltk.app.chartparser_app.ChartView._tree_canvas
nltk.app.chartparser_app.ChartView.html#_tree_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The canvas we're using to display the tree
that each edge spans. May be None, if we're not displaying
trees.
-
nltk.app.chartparser_app.ChartView._sentence_canvas
nltk.app.chartparser_app.ChartView.html#_sentence_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The canvas we're using to display the sentence
text. May be None, if we're not displaying the sentence text.
-
nltk.app.chartparser_app.ChartView._edgetags
nltk.app.chartparser_app.ChartView.html#_edgetags
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A dictionary mapping from edges to the tags of
the canvas elements (lines, etc) used to display that edge.
The values of this dictionary have the form
(linetag, rhstag1, dottag, rhstag2, lhstag).
-
nltk.app.chartparser_app.ChartView._treetags
nltk.app.chartparser_app.ChartView.html#_treetags
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of all the tags that make up the tree;
used to erase the tree (without erasing the loclines).
-
nltk.app.chartparser_app.ChartView._chart_height
nltk.app.chartparser_app.ChartView.html#_chart_height
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The height of the chart canvas.
-
nltk.app.chartparser_app.ChartView._sentence_height
nltk.app.chartparser_app.ChartView.html#_sentence_height
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The height of the sentence canvas.
-
nltk.app.chartparser_app.ChartView._tree_height
nltk.app.chartparser_app.ChartView.html#_tree_height
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The height of the tree
-
nltk.app.chartparser_app.ChartView._text_height
nltk.app.chartparser_app.ChartView.html#_text_height
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The height of a text string (in the normal
font).
-
nltk.app.chartparser_app.ChartView._edgelevels
nltk.app.chartparser_app.ChartView.html#_edgelevels
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of edges at each level of the chart (the
top level is the 0th element). This list is used to remember
where edges should be drawn; and to make sure that no edges
are overlapping on the chart view.
-
nltk.app.chartparser_app.ChartView._unitsize
nltk.app.chartparser_app.ChartView.html#_unitsize
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Pixel size of one unit (from the location). This
is determined by the span of the chart's location, and the
width of the chart display canvas.
-
nltk.app.chartparser_app.ChartView._fontsize
nltk.app.chartparser_app.ChartView.html#_fontsize
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The current font size
-
nltk.app.chartparser_app.ChartView._marks
nltk.app.chartparser_app.ChartView.html#_marks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A dictionary from edges to marks. Marks are
strings, specifying colors (e.g. 'green').
-
nltk.app.chartparser_app.ChartView._LEAF_SPACING
nltk.app.chartparser_app.ChartView.html#_LEAF_SPACING
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._MARGIN
nltk.app.chartparser_app.ChartView.html#_MARGIN
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._TREE_LEVEL_SIZE
nltk.app.chartparser_app.ChartView.html#_TREE_LEVEL_SIZE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._CHART_LEVEL_SIZE
nltk.app.chartparser_app.ChartView.html#_CHART_LEVEL_SIZE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView.__init__
nltk.app.chartparser_app.ChartView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Construct a new Chart display.
-
nltk.app.chartparser_app.ChartView._callbacks
nltk.app.chartparser_app.ChartView.html#_callbacks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._treetoks
nltk.app.chartparser_app.ChartView.html#_treetoks
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._treetoks_edge
nltk.app.chartparser_app.ChartView.html#_treetoks_edge
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._treetoks_index
nltk.app.chartparser_app.ChartView.html#_treetoks_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._tree_tags
nltk.app.chartparser_app.ChartView.html#_tree_tags
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._compact
nltk.app.chartparser_app.ChartView.html#_compact
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._chart_sb
nltk.app.chartparser_app.ChartView.html#_chart_sb
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._tree_sb
nltk.app.chartparser_app.ChartView.html#_tree_sb
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._init_fonts
nltk.app.chartparser_app.ChartView.html#_init_fonts
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._boldfont
nltk.app.chartparser_app.ChartView.html#_boldfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._font
nltk.app.chartparser_app.ChartView.html#_font
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._sysfont
nltk.app.chartparser_app.ChartView.html#_sysfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._sb_canvas
nltk.app.chartparser_app.ChartView.html#_sb_canvas
ZopeInterfaceFunction
Method
PRIVATE
Helper for __init__: construct a canvas with a scrollbar.
-
nltk.app.chartparser_app.ChartView.scroll_up
nltk.app.chartparser_app.ChartView.html#scroll_up
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView.scroll_down
nltk.app.chartparser_app.ChartView.html#scroll_down
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView.page_up
nltk.app.chartparser_app.ChartView.html#page_up
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView.page_down
nltk.app.chartparser_app.ChartView.html#page_down
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView._grow
nltk.app.chartparser_app.ChartView.html#_grow
ZopeInterfaceFunction
Method
PRIVATE
Grow the window, if necessary
-
nltk.app.chartparser_app.ChartView.set_font_size
nltk.app.chartparser_app.ChartView.html#set_font_size
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView.get_font_size
nltk.app.chartparser_app.ChartView.html#get_font_size
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView._configure
nltk.app.chartparser_app.ChartView.html#_configure
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.app.chartparser_app.ChartView.update
nltk.app.chartparser_app.ChartView.html#update
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.app.chartparser_app.ChartView._edge_conflict
nltk.app.chartparser_app.ChartView.html#_edge_conflict
ZopeInterfaceFunction
Method
PRIVATE
Return True if the given edge overlaps with any edge on the given level. This is used by _add_edge to figure out what level a new edge should be added to.
-
nltk.app.chartparser_app.ChartView._analyze_edge
nltk.app.chartparser_app.ChartView.html#_analyze_edge
ZopeInterfaceFunction
Method
PRIVATE
Given a new edge, recalculate:
-
nltk.app.chartparser_app.ChartView._add_edge
nltk.app.chartparser_app.ChartView.html#_add_edge
ZopeInterfaceFunction
Method
PRIVATE
Add a single edge to the ChartView:
-
nltk.app.chartparser_app.ChartView.view_edge
nltk.app.chartparser_app.ChartView.html#view_edge
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView._draw_edge
nltk.app.chartparser_app.ChartView.html#_draw_edge
ZopeInterfaceFunction
Method
PRIVATE
Draw a single edge on the ChartView.
-
nltk.app.chartparser_app.ChartView._color_edge
nltk.app.chartparser_app.ChartView.html#_color_edge
ZopeInterfaceFunction
Method
PRIVATE
Color in an edge with the given colors. If no colors are specified, use intelligent defaults (dependent on selection, etc.)
-
nltk.app.chartparser_app.ChartView.mark_edge
nltk.app.chartparser_app.ChartView.html#mark_edge
ZopeInterfaceFunction
Method
VISIBLE
Mark an edge
-
nltk.app.chartparser_app.ChartView.unmark_edge
nltk.app.chartparser_app.ChartView.html#unmark_edge
ZopeInterfaceFunction
Method
VISIBLE
Unmark an edge (or all edges)
-
nltk.app.chartparser_app.ChartView.markonly_edge
nltk.app.chartparser_app.ChartView.html#markonly_edge
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView._analyze
nltk.app.chartparser_app.ChartView.html#_analyze
ZopeInterfaceFunction
Method
PRIVATE
Analyze the sentence string, to figure out how big a unit needs to be, How big the tree should be, etc.
-
nltk.app.chartparser_app.ChartView._chart_level_size
nltk.app.chartparser_app.ChartView.html#_chart_level_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._resize
nltk.app.chartparser_app.ChartView.html#_resize
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.app.chartparser_app.ChartView._draw_loclines
nltk.app.chartparser_app.ChartView.html#_draw_loclines
ZopeInterfaceFunction
Method
PRIVATE
Draw location lines. These are vertical gridlines used to show where each location unit is.
-
nltk.app.chartparser_app.ChartView._loclines
nltk.app.chartparser_app.ChartView.html#_loclines
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._draw_sentence
nltk.app.chartparser_app.ChartView.html#_draw_sentence
ZopeInterfaceFunction
Method
PRIVATE
Draw the sentence string.
-
nltk.app.chartparser_app.ChartView.erase_tree
nltk.app.chartparser_app.ChartView.html#erase_tree
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView.draw_tree
nltk.app.chartparser_app.ChartView.html#draw_tree
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView.cycle_tree
nltk.app.chartparser_app.ChartView.html#cycle_tree
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView._draw_treecycle
nltk.app.chartparser_app.ChartView.html#_draw_treecycle
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartView._draw_treetok
nltk.app.chartparser_app.ChartView.html#_draw_treetok
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.app.chartparser_app.ChartView.draw
nltk.app.chartparser_app.ChartView.html#draw
ZopeInterfaceFunction
Method
VISIBLE
Draw everything (from scratch).
-
nltk.app.chartparser_app.ChartView.add_callback
nltk.app.chartparser_app.ChartView.html#add_callback
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView.remove_callback
nltk.app.chartparser_app.ChartView.html#remove_callback
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartView._fire_callbacks
nltk.app.chartparser_app.ChartView.html#_fire_callbacks
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.EdgeRule
nltk.app.chartparser_app.EdgeRule.html
ZopeInterfaceClass
Class
VISIBLE
To create an edge rule, make an empty base class that uses EdgeRule as the first base class, and the basic rule as the second base class. (Order matters!)
-
nltk.app.chartparser_app.EdgeRule.__init__
nltk.app.chartparser_app.EdgeRule.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.EdgeRule._edge
nltk.app.chartparser_app.EdgeRule.html#_edge
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.EdgeRule.NUM_EDGES
nltk.app.chartparser_app.EdgeRule.html#NUM_EDGES
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chartparser_app.EdgeRule.apply
nltk.app.chartparser_app.EdgeRule.html#apply
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.EdgeRule.__str__
nltk.app.chartparser_app.EdgeRule.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.TopDownPredictEdgeRule
nltk.app.chartparser_app.TopDownPredictEdgeRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.chartparser_app.BottomUpEdgeRule
nltk.app.chartparser_app.BottomUpEdgeRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.chartparser_app.BottomUpLeftCornerEdgeRule
nltk.app.chartparser_app.BottomUpLeftCornerEdgeRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.chartparser_app.FundamentalEdgeRule
nltk.app.chartparser_app.FundamentalEdgeRule.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp
nltk.app.chartparser_app.ChartParserApp.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/19 instance variable, 0/10 class variable, 4/46 methods documented
-
nltk.app.chartparser_app.ChartParserApp.__init__
nltk.app.chartparser_app.ChartParserApp.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._root
nltk.app.chartparser_app.ChartParserApp.html#_root
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._matrix
nltk.app.chartparser_app.ChartParserApp.html#_matrix
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._results
nltk.app.chartparser_app.ChartParserApp.html#_results
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.destroy
nltk.app.chartparser_app.ChartParserApp.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.mainloop
nltk.app.chartparser_app.ChartParserApp.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.app.chartparser_app.ChartParserApp._init_parser
nltk.app.chartparser_app.ChartParserApp.html#_init_parser
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._grammar
nltk.app.chartparser_app.ChartParserApp.html#_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._tokens
nltk.app.chartparser_app.ChartParserApp.html#_tokens
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._reset_parser
nltk.app.chartparser_app.ChartParserApp.html#_reset_parser
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._cp
nltk.app.chartparser_app.ChartParserApp.html#_cp
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._chart
nltk.app.chartparser_app.ChartParserApp.html#_chart
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._cpstep
nltk.app.chartparser_app.ChartParserApp.html#_cpstep
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._selection
nltk.app.chartparser_app.ChartParserApp.html#_selection
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._init_fonts
nltk.app.chartparser_app.ChartParserApp.html#_init_fonts
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._sysfont
nltk.app.chartparser_app.ChartParserApp.html#_sysfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._size
nltk.app.chartparser_app.ChartParserApp.html#_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._boldfont
nltk.app.chartparser_app.ChartParserApp.html#_boldfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._font
nltk.app.chartparser_app.ChartParserApp.html#_font
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._init_animation
nltk.app.chartparser_app.ChartParserApp.html#_init_animation
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._step
nltk.app.chartparser_app.ChartParserApp.html#_step
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._animate
nltk.app.chartparser_app.ChartParserApp.html#_animate
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._animating
nltk.app.chartparser_app.ChartParserApp.html#_animating
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._init_chartview
nltk.app.chartparser_app.ChartParserApp.html#_init_chartview
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._cv
nltk.app.chartparser_app.ChartParserApp.html#_cv
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._init_rulelabel
nltk.app.chartparser_app.ChartParserApp.html#_init_rulelabel
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._rulelabel1
nltk.app.chartparser_app.ChartParserApp.html#_rulelabel1
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._rulelabel2
nltk.app.chartparser_app.ChartParserApp.html#_rulelabel2
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._init_buttons
nltk.app.chartparser_app.ChartParserApp.html#_init_buttons
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._init_bindings
nltk.app.chartparser_app.ChartParserApp.html#_init_bindings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._click_cv_edge
nltk.app.chartparser_app.ChartParserApp.html#_click_cv_edge
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._select_matrix_edge
nltk.app.chartparser_app.ChartParserApp.html#_select_matrix_edge
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._select_edge
nltk.app.chartparser_app.ChartParserApp.html#_select_edge
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._deselect_edge
nltk.app.chartparser_app.ChartParserApp.html#_deselect_edge
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._show_new_edge
nltk.app.chartparser_app.ChartParserApp.html#_show_new_edge
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.help
nltk.app.chartparser_app.ChartParserApp.html#help
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.about
nltk.app.chartparser_app.ChartParserApp.html#about
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.CHART_FILE_TYPES
nltk.app.chartparser_app.ChartParserApp.html#CHART_FILE_TYPES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.GRAMMAR_FILE_TYPES
nltk.app.chartparser_app.ChartParserApp.html#GRAMMAR_FILE_TYPES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.load_chart
nltk.app.chartparser_app.ChartParserApp.html#load_chart
ZopeInterfaceFunction
Method
VISIBLE
Load a chart from a pickle file
-
nltk.app.chartparser_app.ChartParserApp.save_chart
nltk.app.chartparser_app.ChartParserApp.html#save_chart
ZopeInterfaceFunction
Method
VISIBLE
Save a chart to a pickle file
-
nltk.app.chartparser_app.ChartParserApp.load_grammar
nltk.app.chartparser_app.ChartParserApp.html#load_grammar
ZopeInterfaceFunction
Method
VISIBLE
Load a grammar from a pickle file
-
nltk.app.chartparser_app.ChartParserApp.save_grammar
nltk.app.chartparser_app.ChartParserApp.html#save_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.reset
nltk.app.chartparser_app.ChartParserApp.html#reset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.edit_grammar
nltk.app.chartparser_app.ChartParserApp.html#edit_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.set_grammar
nltk.app.chartparser_app.ChartParserApp.html#set_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.edit_sentence
nltk.app.chartparser_app.ChartParserApp.html#edit_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.set_sentence
nltk.app.chartparser_app.ChartParserApp.html#set_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.view_matrix
nltk.app.chartparser_app.ChartParserApp.html#view_matrix
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.view_results
nltk.app.chartparser_app.ChartParserApp.html#view_results
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.resize
nltk.app.chartparser_app.ChartParserApp.html#resize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.set_font_size
nltk.app.chartparser_app.ChartParserApp.html#set_font_size
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.get_font_size
nltk.app.chartparser_app.ChartParserApp.html#get_font_size
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.apply_strategy
nltk.app.chartparser_app.ChartParserApp.html#apply_strategy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._stop_animation
nltk.app.chartparser_app.ChartParserApp.html#_stop_animation
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._animate_strategy
nltk.app.chartparser_app.ChartParserApp.html#_animate_strategy
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._apply_strategy
nltk.app.chartparser_app.ChartParserApp.html#_apply_strategy
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._display_rule
nltk.app.chartparser_app.ChartParserApp.html#_display_rule
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._TD_INIT
nltk.app.chartparser_app.ChartParserApp.html#_TD_INIT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._TD_PREDICT
nltk.app.chartparser_app.ChartParserApp.html#_TD_PREDICT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._BU_RULE
nltk.app.chartparser_app.ChartParserApp.html#_BU_RULE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._BU_LC_RULE
nltk.app.chartparser_app.ChartParserApp.html#_BU_LC_RULE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._FUNDAMENTAL
nltk.app.chartparser_app.ChartParserApp.html#_FUNDAMENTAL
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._TD_STRATEGY
nltk.app.chartparser_app.ChartParserApp.html#_TD_STRATEGY
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._BU_STRATEGY
nltk.app.chartparser_app.ChartParserApp.html#_BU_STRATEGY
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp._BU_LC_STRATEGY
nltk.app.chartparser_app.ChartParserApp.html#_BU_LC_STRATEGY
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.top_down_init
nltk.app.chartparser_app.ChartParserApp.html#top_down_init
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.top_down_predict
nltk.app.chartparser_app.ChartParserApp.html#top_down_predict
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.bottom_up
nltk.app.chartparser_app.ChartParserApp.html#bottom_up
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.bottom_up_leftcorner
nltk.app.chartparser_app.ChartParserApp.html#bottom_up_leftcorner
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.fundamental
nltk.app.chartparser_app.ChartParserApp.html#fundamental
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.bottom_up_strategy
nltk.app.chartparser_app.ChartParserApp.html#bottom_up_strategy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.bottom_up_leftcorner_strategy
nltk.app.chartparser_app.ChartParserApp.html#bottom_up_leftcorner_strategy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.ChartParserApp.top_down_strategy
nltk.app.chartparser_app.ChartParserApp.html#top_down_strategy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chartparser_app.app
nltk.app.chartparser_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp
nltk.app.chunkparser_app.RegexpChunkApp.html
ZopeInterfaceClass
Class
VISIBLE
A graphical tool for exploring the regular expression based chunk parser nltk.chunk.RegexpChunkParser.
-
nltk.app.chunkparser_app.RegexpChunkApp.TAGSET
nltk.app.chunkparser_app.RegexpChunkApp.html#TAGSET
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.HELP
nltk.app.chunkparser_app.RegexpChunkApp.html#HELP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.HELP_AUTOTAG
nltk.app.chunkparser_app.RegexpChunkApp.html#HELP_AUTOTAG
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._EVAL_DELAY
nltk.app.chunkparser_app.RegexpChunkApp.html#_EVAL_DELAY
ZopeInterfaceAttribute
Class Variable
PRIVATE
If the user has not pressed any key for this amount of time (in seconds), and the current grammar has not been evaluated, then the eval demon will evaluate it.
-
nltk.app.chunkparser_app.RegexpChunkApp._EVAL_CHUNK
nltk.app.chunkparser_app.RegexpChunkApp.html#_EVAL_CHUNK
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The number of sentences that should be evaluated by the eval demon each time it runs.
-
nltk.app.chunkparser_app.RegexpChunkApp._EVAL_FREQ
nltk.app.chunkparser_app.RegexpChunkApp.html#_EVAL_FREQ
ZopeInterfaceAttribute
Class Variable
PRIVATE
The frequency (in seconds) at which the eval demon is run
-
nltk.app.chunkparser_app.RegexpChunkApp._EVAL_DEMON_MIN
nltk.app.chunkparser_app.RegexpChunkApp.html#_EVAL_DEMON_MIN
ZopeInterfaceAttribute
Class Variable
PRIVATE
The minimum amount of time that the eval demon should take each time it runs -- if it takes less than this time, _EVAL_CHUNK will be modified upwards.
-
nltk.app.chunkparser_app.RegexpChunkApp._EVAL_DEMON_MAX
nltk.app.chunkparser_app.RegexpChunkApp.html#_EVAL_DEMON_MAX
ZopeInterfaceAttribute
Class Variable
PRIVATE
The maximum amount of time that the eval demon should take each time it runs -- if it takes more than this time, _EVAL_CHUNK will be modified downwards.
-
nltk.app.chunkparser_app.RegexpChunkApp._GRAMMARBOX_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_GRAMMARBOX_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._HELPBOX_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_HELPBOX_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._DEVSETBOX_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_DEVSETBOX_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._STATUS_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_STATUS_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._FONT_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_FONT_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._FRAME_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_FRAME_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._EVALBOX_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_EVALBOX_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._BUTTON_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_BUTTON_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._HELPTAB_BG_COLOR
nltk.app.chunkparser_app.RegexpChunkApp.html#_HELPTAB_BG_COLOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._HELPTAB_FG_COLOR
nltk.app.chunkparser_app.RegexpChunkApp.html#_HELPTAB_FG_COLOR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._HELPTAB_FG_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_HELPTAB_FG_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._HELPTAB_BG_PARAMS
nltk.app.chunkparser_app.RegexpChunkApp.html#_HELPTAB_BG_PARAMS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._HELPTAB_SPACER
nltk.app.chunkparser_app.RegexpChunkApp.html#_HELPTAB_SPACER
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.normalize_grammar
nltk.app.chunkparser_app.RegexpChunkApp.html#normalize_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.__init__
nltk.app.chunkparser_app.RegexpChunkApp.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.app.chunkparser_app.RegexpChunkApp._chunk_label
nltk.app.chunkparser_app.RegexpChunkApp.html#_chunk_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.tagset
nltk.app.chunkparser_app.RegexpChunkApp.html#tagset
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.chunker
nltk.app.chunkparser_app.RegexpChunkApp.html#chunker
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The chunker built from the grammar string
-
nltk.app.chunkparser_app.RegexpChunkApp.grammar
nltk.app.chunkparser_app.RegexpChunkApp.html#grammar
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The unparsed grammar string
-
nltk.app.chunkparser_app.RegexpChunkApp.normalized_grammar
nltk.app.chunkparser_app.RegexpChunkApp.html#normalized_grammar
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A normalized version of self.grammar.
-
nltk.app.chunkparser_app.RegexpChunkApp.grammar_changed
nltk.app.chunkparser_app.RegexpChunkApp.html#grammar_changed
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The last time() that the grammar was changed.
-
nltk.app.chunkparser_app.RegexpChunkApp.devset
nltk.app.chunkparser_app.RegexpChunkApp.html#devset
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The development set -- a list of chunked sentences.
-
nltk.app.chunkparser_app.RegexpChunkApp.devset_name
nltk.app.chunkparser_app.RegexpChunkApp.html#devset_name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The name of the development set (for save files).
-
nltk.app.chunkparser_app.RegexpChunkApp.devset_index
nltk.app.chunkparser_app.RegexpChunkApp.html#devset_index
ZopeInterfaceAttribute
Instance Variable
VISIBLE
The index into the development set of the first instance that's currently being viewed.
-
nltk.app.chunkparser_app.RegexpChunkApp._last_keypress
nltk.app.chunkparser_app.RegexpChunkApp.html#_last_keypress
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The time() when a key was most recently pressed
-
nltk.app.chunkparser_app.RegexpChunkApp._history
nltk.app.chunkparser_app.RegexpChunkApp.html#_history
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A list of (grammar, precision, recall, fscore) tuples for grammars that the user has already tried.
-
nltk.app.chunkparser_app.RegexpChunkApp._history_index
nltk.app.chunkparser_app.RegexpChunkApp.html#_history_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
When the user is scrolling through previous grammars, this is used to keep track of which grammar they're looking at.
-
nltk.app.chunkparser_app.RegexpChunkApp._eval_grammar
nltk.app.chunkparser_app.RegexpChunkApp.html#_eval_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The grammar that is being currently evaluated by the eval demon.
-
nltk.app.chunkparser_app.RegexpChunkApp._eval_normalized_grammar
nltk.app.chunkparser_app.RegexpChunkApp.html#_eval_normalized_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
A normalized copy of _eval_grammar.
-
nltk.app.chunkparser_app.RegexpChunkApp._eval_index
nltk.app.chunkparser_app.RegexpChunkApp.html#_eval_index
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The index of the next sentence in the development set that should be looked at by the eval demon.
-
nltk.app.chunkparser_app.RegexpChunkApp._eval_score
nltk.app.chunkparser_app.RegexpChunkApp.html#_eval_score
ZopeInterfaceAttribute
Instance Variable
PRIVATE
The ChunkScore object that's used to keep track of the score of the current grammar on the development set.
-
nltk.app.chunkparser_app.RegexpChunkApp.top
nltk.app.chunkparser_app.RegexpChunkApp.html#top
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._devset_size
nltk.app.chunkparser_app.RegexpChunkApp.html#_devset_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._init_bindings
nltk.app.chunkparser_app.RegexpChunkApp.html#_init_bindings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._init_fonts
nltk.app.chunkparser_app.RegexpChunkApp.html#_init_fonts
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._size
nltk.app.chunkparser_app.RegexpChunkApp.html#_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._font
nltk.app.chunkparser_app.RegexpChunkApp.html#_font
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._smallfont
nltk.app.chunkparser_app.RegexpChunkApp.html#_smallfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.toggle_show_trace
nltk.app.chunkparser_app.RegexpChunkApp.html#toggle_show_trace
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._SCALE_N
nltk.app.chunkparser_app.RegexpChunkApp.html#_SCALE_N
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._DRAW_LINES
nltk.app.chunkparser_app.RegexpChunkApp.html#_DRAW_LINES
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._eval_plot
nltk.app.chunkparser_app.RegexpChunkApp.html#_eval_plot
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._eval_demon_running
nltk.app.chunkparser_app.RegexpChunkApp.html#_eval_demon_running
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._eval_demon
nltk.app.chunkparser_app.RegexpChunkApp.html#_eval_demon
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._adaptively_modify_eval_chunk
nltk.app.chunkparser_app.RegexpChunkApp.html#_adaptively_modify_eval_chunk
ZopeInterfaceFunction
Method
PRIVATE
Modify _EVAL_CHUNK to try to keep the amount of time that the eval demon takes between _EVAL_DEMON_MIN and _EVAL_DEMON_MAX.
-
nltk.app.chunkparser_app.RegexpChunkApp._init_widgets
nltk.app.chunkparser_app.RegexpChunkApp.html#_init_widgets
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.grammarbox
nltk.app.chunkparser_app.RegexpChunkApp.html#grammarbox
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.grammarlabel
nltk.app.chunkparser_app.RegexpChunkApp.html#grammarlabel
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.helpbox
nltk.app.chunkparser_app.RegexpChunkApp.html#helpbox
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.helptabs
nltk.app.chunkparser_app.RegexpChunkApp.html#helptabs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.devsetbox
nltk.app.chunkparser_app.RegexpChunkApp.html#devsetbox
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.devsetlabel
nltk.app.chunkparser_app.RegexpChunkApp.html#devsetlabel
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.devset_scroll
nltk.app.chunkparser_app.RegexpChunkApp.html#devset_scroll
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.devset_xscroll
nltk.app.chunkparser_app.RegexpChunkApp.html#devset_xscroll
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.devset_button
nltk.app.chunkparser_app.RegexpChunkApp.html#devset_button
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.trace_button
nltk.app.chunkparser_app.RegexpChunkApp.html#trace_button
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.evalbox
nltk.app.chunkparser_app.RegexpChunkApp.html#evalbox
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._autoscale
nltk.app.chunkparser_app.RegexpChunkApp.html#_autoscale
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._eval_lines
nltk.app.chunkparser_app.RegexpChunkApp.html#_eval_lines
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.status
nltk.app.chunkparser_app.RegexpChunkApp.html#status
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._showing_trace
nltk.app.chunkparser_app.RegexpChunkApp.html#_showing_trace
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.show_trace
nltk.app.chunkparser_app.RegexpChunkApp.html#show_trace
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.charnum
nltk.app.chunkparser_app.RegexpChunkApp.html#charnum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.linenum
nltk.app.chunkparser_app.RegexpChunkApp.html#linenum
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.show_help
nltk.app.chunkparser_app.RegexpChunkApp.html#show_help
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._history_prev
nltk.app.chunkparser_app.RegexpChunkApp.html#_history_prev
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._history_next
nltk.app.chunkparser_app.RegexpChunkApp.html#_history_next
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._view_history
nltk.app.chunkparser_app.RegexpChunkApp.html#_view_history
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._devset_next
nltk.app.chunkparser_app.RegexpChunkApp.html#_devset_next
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._devset_prev
nltk.app.chunkparser_app.RegexpChunkApp.html#_devset_prev
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.destroy
nltk.app.chunkparser_app.RegexpChunkApp.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._devset_scroll
nltk.app.chunkparser_app.RegexpChunkApp.html#_devset_scroll
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.show_devset
nltk.app.chunkparser_app.RegexpChunkApp.html#show_devset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._chunks
nltk.app.chunkparser_app.RegexpChunkApp.html#_chunks
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._syntax_highlight_grammar
nltk.app.chunkparser_app.RegexpChunkApp.html#_syntax_highlight_grammar
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._grammarcheck
nltk.app.chunkparser_app.RegexpChunkApp.html#_grammarcheck
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._grammarcheck_errs
nltk.app.chunkparser_app.RegexpChunkApp.html#_grammarcheck_errs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.update
nltk.app.chunkparser_app.RegexpChunkApp.html#update
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._highlight_devset
nltk.app.chunkparser_app.RegexpChunkApp.html#_highlight_devset
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._chunkparse
nltk.app.chunkparser_app.RegexpChunkApp.html#_chunkparse
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp._color_chunk
nltk.app.chunkparser_app.RegexpChunkApp.html#_color_chunk
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.reset
nltk.app.chunkparser_app.RegexpChunkApp.html#reset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.SAVE_GRAMMAR_TEMPLATE
nltk.app.chunkparser_app.RegexpChunkApp.html#SAVE_GRAMMAR_TEMPLATE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.save_grammar
nltk.app.chunkparser_app.RegexpChunkApp.html#save_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.load_grammar
nltk.app.chunkparser_app.RegexpChunkApp.html#load_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.save_history
nltk.app.chunkparser_app.RegexpChunkApp.html#save_history
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.about
nltk.app.chunkparser_app.RegexpChunkApp.html#about
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.set_devset_size
nltk.app.chunkparser_app.RegexpChunkApp.html#set_devset_size
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.resize
nltk.app.chunkparser_app.RegexpChunkApp.html#resize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.chunkparser_app.RegexpChunkApp.mainloop
nltk.app.chunkparser_app.RegexpChunkApp.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.app.chunkparser_app.app
nltk.app.chunkparser_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.collocations_app.CORPUS_LOADED_EVENT
nltk.app.collocations_app.html#CORPUS_LOADED_EVENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.ERROR_LOADING_CORPUS_EVENT
nltk.app.collocations_app.html#ERROR_LOADING_CORPUS_EVENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.POLL_INTERVAL
nltk.app.collocations_app.html#POLL_INTERVAL
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app._DEFAULT
nltk.app.collocations_app.html#_DEFAULT
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.app.collocations_app._CORPORA
nltk.app.collocations_app.html#_CORPORA
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView
nltk.app.collocations_app.CollocationsView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView._BACKGROUND_COLOUR
nltk.app.collocations_app.CollocationsView.html#_BACKGROUND_COLOUR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView.__init__
nltk.app.collocations_app.CollocationsView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.queue
nltk.app.collocations_app.CollocationsView.html#queue
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.model
nltk.app.collocations_app.CollocationsView.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.top
nltk.app.collocations_app.CollocationsView.html#top
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.after
nltk.app.collocations_app.CollocationsView.html#after
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView._init_top
nltk.app.collocations_app.CollocationsView.html#_init_top
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView._init_widgets
nltk.app.collocations_app.CollocationsView.html#_init_widgets
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView.main_frame
nltk.app.collocations_app.CollocationsView.html#main_frame
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView._init_corpus_select
nltk.app.collocations_app.CollocationsView.html#_init_corpus_select
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView.var
nltk.app.collocations_app.CollocationsView.html#var
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView._init_status
nltk.app.collocations_app.CollocationsView.html#_init_status
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView.status
nltk.app.collocations_app.CollocationsView.html#status
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView._result_size
nltk.app.collocations_app.CollocationsView.html#_result_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView.set_result_size
nltk.app.collocations_app.CollocationsView.html#set_result_size
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView._init_results_box
nltk.app.collocations_app.CollocationsView.html#_init_results_box
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView.results_box
nltk.app.collocations_app.CollocationsView.html#results_box
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView._init_paging
nltk.app.collocations_app.CollocationsView.html#_init_paging
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView.prev
nltk.app.collocations_app.CollocationsView.html#prev
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.next
nltk.app.collocations_app.CollocationsView.html#next
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.reset_current_page
nltk.app.collocations_app.CollocationsView.html#reset_current_page
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.current_page
nltk.app.collocations_app.CollocationsView.html#current_page
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView._poll
nltk.app.collocations_app.CollocationsView.html#_poll
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.collocations_app.CollocationsView.handle_error_loading_corpus
nltk.app.collocations_app.CollocationsView.html#handle_error_loading_corpus
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.handle_corpus_loaded
nltk.app.collocations_app.CollocationsView.html#handle_corpus_loaded
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.corpus_selected
nltk.app.collocations_app.CollocationsView.html#corpus_selected
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.previous
nltk.app.collocations_app.CollocationsView.html#previous
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.__next__
nltk.app.collocations_app.CollocationsView.html#__next__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.load_corpus
nltk.app.collocations_app.CollocationsView.html#load_corpus
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.freeze_editable
nltk.app.collocations_app.CollocationsView.html#freeze_editable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.clear_results_box
nltk.app.collocations_app.CollocationsView.html#clear_results_box
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.fire_event
nltk.app.collocations_app.CollocationsView.html#fire_event
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.destroy
nltk.app.collocations_app.CollocationsView.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.mainloop
nltk.app.collocations_app.CollocationsView.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.unfreeze_editable
nltk.app.collocations_app.CollocationsView.html#unfreeze_editable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.set_paging_button_states
nltk.app.collocations_app.CollocationsView.html#set_paging_button_states
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsView.write_results
nltk.app.collocations_app.CollocationsView.html#write_results
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel
nltk.app.collocations_app.CollocationsModel.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.__init__
nltk.app.collocations_app.CollocationsModel.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.result_count
nltk.app.collocations_app.CollocationsModel.html#result_count
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.selected_corpus
nltk.app.collocations_app.CollocationsModel.html#selected_corpus
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.collocations
nltk.app.collocations_app.CollocationsModel.html#collocations
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.CORPORA
nltk.app.collocations_app.CollocationsModel.html#CORPORA
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.DEFAULT_CORPUS
nltk.app.collocations_app.CollocationsModel.html#DEFAULT_CORPUS
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.queue
nltk.app.collocations_app.CollocationsModel.html#queue
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.reset_results
nltk.app.collocations_app.CollocationsModel.html#reset_results
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.result_pages
nltk.app.collocations_app.CollocationsModel.html#result_pages
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.results_returned
nltk.app.collocations_app.CollocationsModel.html#results_returned
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.load_corpus
nltk.app.collocations_app.CollocationsModel.html#load_corpus
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.non_default_corpora
nltk.app.collocations_app.CollocationsModel.html#non_default_corpora
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.is_last_page
nltk.app.collocations_app.CollocationsModel.html#is_last_page
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.next
nltk.app.collocations_app.CollocationsModel.html#next
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.prev
nltk.app.collocations_app.CollocationsModel.html#prev
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.LoadCorpus
nltk.app.collocations_app.CollocationsModel.LoadCorpus.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.LoadCorpus.__init__
nltk.app.collocations_app.CollocationsModel.LoadCorpus.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.LoadCorpus.model
nltk.app.collocations_app.CollocationsModel.LoadCorpus.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.LoadCorpus.name
nltk.app.collocations_app.CollocationsModel.LoadCorpus.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.collocations_app.CollocationsModel.LoadCorpus.run
nltk.app.collocations_app.CollocationsModel.LoadCorpus.html#run
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.collocations_app.app
nltk.app.collocations_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.concordance_app.WORD_OR_TAG
nltk.app.concordance_app.html#WORD_OR_TAG
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.BOUNDARY
nltk.app.concordance_app.html#BOUNDARY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.CORPUS_LOADED_EVENT
nltk.app.concordance_app.html#CORPUS_LOADED_EVENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.SEARCH_TERMINATED_EVENT
nltk.app.concordance_app.html#SEARCH_TERMINATED_EVENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.SEARCH_ERROR_EVENT
nltk.app.concordance_app.html#SEARCH_ERROR_EVENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ERROR_LOADING_CORPUS_EVENT
nltk.app.concordance_app.html#ERROR_LOADING_CORPUS_EVENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.POLL_INTERVAL
nltk.app.concordance_app.html#POLL_INTERVAL
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app._DEFAULT
nltk.app.concordance_app.html#_DEFAULT
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app._CORPORA
nltk.app.concordance_app.html#_CORPORA
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView
nltk.app.concordance_app.ConcordanceSearchView.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._BACKGROUND_COLOUR
nltk.app.concordance_app.ConcordanceSearchView.html#_BACKGROUND_COLOUR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._HIGHLIGHT_WORD_COLOUR
nltk.app.concordance_app.ConcordanceSearchView.html#_HIGHLIGHT_WORD_COLOUR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._HIGHLIGHT_WORD_TAG
nltk.app.concordance_app.ConcordanceSearchView.html#_HIGHLIGHT_WORD_TAG
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._HIGHLIGHT_LABEL_COLOUR
nltk.app.concordance_app.ConcordanceSearchView.html#_HIGHLIGHT_LABEL_COLOUR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._HIGHLIGHT_LABEL_TAG
nltk.app.concordance_app.ConcordanceSearchView.html#_HIGHLIGHT_LABEL_TAG
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._FRACTION_LEFT_TEXT
nltk.app.concordance_app.ConcordanceSearchView.html#_FRACTION_LEFT_TEXT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.__init__
nltk.app.concordance_app.ConcordanceSearchView.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.queue
nltk.app.concordance_app.ConcordanceSearchView.html#queue
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.model
nltk.app.concordance_app.ConcordanceSearchView.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.top
nltk.app.concordance_app.ConcordanceSearchView.html#top
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.after
nltk.app.concordance_app.ConcordanceSearchView.html#after
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._init_top
nltk.app.concordance_app.ConcordanceSearchView.html#_init_top
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._init_widgets
nltk.app.concordance_app.ConcordanceSearchView.html#_init_widgets
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.main_frame
nltk.app.concordance_app.ConcordanceSearchView.html#main_frame
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._result_size
nltk.app.concordance_app.ConcordanceSearchView.html#_result_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._cntx_bf_len
nltk.app.concordance_app.ConcordanceSearchView.html#_cntx_bf_len
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._cntx_af_len
nltk.app.concordance_app.ConcordanceSearchView.html#_cntx_af_len
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.set_result_size
nltk.app.concordance_app.ConcordanceSearchView.html#set_result_size
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.set_cntx_af_len
nltk.app.concordance_app.ConcordanceSearchView.html#set_cntx_af_len
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._char_after
nltk.app.concordance_app.ConcordanceSearchView.html#_char_after
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.set_cntx_bf_len
nltk.app.concordance_app.ConcordanceSearchView.html#set_cntx_bf_len
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._char_before
nltk.app.concordance_app.ConcordanceSearchView.html#_char_before
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._init_corpus_select
nltk.app.concordance_app.ConcordanceSearchView.html#_init_corpus_select
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.var
nltk.app.concordance_app.ConcordanceSearchView.html#var
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._init_status
nltk.app.concordance_app.ConcordanceSearchView.html#_init_status
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.status
nltk.app.concordance_app.ConcordanceSearchView.html#status
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._init_query_box
nltk.app.concordance_app.ConcordanceSearchView.html#_init_query_box
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.query_box
nltk.app.concordance_app.ConcordanceSearchView.html#query_box
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.search_button
nltk.app.concordance_app.ConcordanceSearchView.html#search_button
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.search_enter_keypress_handler
nltk.app.concordance_app.ConcordanceSearchView.html#search_enter_keypress_handler
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._init_results_box
nltk.app.concordance_app.ConcordanceSearchView.html#_init_results_box
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.results_box
nltk.app.concordance_app.ConcordanceSearchView.html#results_box
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._init_paging
nltk.app.concordance_app.ConcordanceSearchView.html#_init_paging
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.prev
nltk.app.concordance_app.ConcordanceSearchView.html#prev
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.next
nltk.app.concordance_app.ConcordanceSearchView.html#next
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.current_page
nltk.app.concordance_app.ConcordanceSearchView.html#current_page
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.previous
nltk.app.concordance_app.ConcordanceSearchView.html#previous
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.__next__
nltk.app.concordance_app.ConcordanceSearchView.html#__next__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.about
nltk.app.concordance_app.ConcordanceSearchView.html#about
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._bind_event_handlers
nltk.app.concordance_app.ConcordanceSearchView.html#_bind_event_handlers
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView._poll
nltk.app.concordance_app.ConcordanceSearchView.html#_poll
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.handle_error_loading_corpus
nltk.app.concordance_app.ConcordanceSearchView.html#handle_error_loading_corpus
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.handle_corpus_loaded
nltk.app.concordance_app.ConcordanceSearchView.html#handle_corpus_loaded
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.handle_search_terminated
nltk.app.concordance_app.ConcordanceSearchView.html#handle_search_terminated
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.handle_search_error
nltk.app.concordance_app.ConcordanceSearchView.html#handle_search_error
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.corpus_selected
nltk.app.concordance_app.ConcordanceSearchView.html#corpus_selected
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.load_corpus
nltk.app.concordance_app.ConcordanceSearchView.html#load_corpus
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.search
nltk.app.concordance_app.ConcordanceSearchView.html#search
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.write_results
nltk.app.concordance_app.ConcordanceSearchView.html#write_results
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.words_and_labels
nltk.app.concordance_app.ConcordanceSearchView.html#words_and_labels
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.pad
nltk.app.concordance_app.ConcordanceSearchView.html#pad
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.destroy
nltk.app.concordance_app.ConcordanceSearchView.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.clear_all
nltk.app.concordance_app.ConcordanceSearchView.html#clear_all
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.clear_results_box
nltk.app.concordance_app.ConcordanceSearchView.html#clear_results_box
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.freeze_editable
nltk.app.concordance_app.ConcordanceSearchView.html#freeze_editable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.unfreeze_editable
nltk.app.concordance_app.ConcordanceSearchView.html#unfreeze_editable
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.set_paging_button_states
nltk.app.concordance_app.ConcordanceSearchView.html#set_paging_button_states
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.fire_event
nltk.app.concordance_app.ConcordanceSearchView.html#fire_event
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchView.mainloop
nltk.app.concordance_app.ConcordanceSearchView.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel
nltk.app.concordance_app.ConcordanceSearchModel.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.__init__
nltk.app.concordance_app.ConcordanceSearchModel.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.queue
nltk.app.concordance_app.ConcordanceSearchModel.html#queue
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.CORPORA
nltk.app.concordance_app.ConcordanceSearchModel.html#CORPORA
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.DEFAULT_CORPUS
nltk.app.concordance_app.ConcordanceSearchModel.html#DEFAULT_CORPUS
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.selected_corpus
nltk.app.concordance_app.ConcordanceSearchModel.html#selected_corpus
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.result_count
nltk.app.concordance_app.ConcordanceSearchModel.html#result_count
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.last_sent_searched
nltk.app.concordance_app.ConcordanceSearchModel.html#last_sent_searched
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.non_default_corpora
nltk.app.concordance_app.ConcordanceSearchModel.html#non_default_corpora
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.load_corpus
nltk.app.concordance_app.ConcordanceSearchModel.html#load_corpus
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.tagged_sents
nltk.app.concordance_app.ConcordanceSearchModel.html#tagged_sents
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.search
nltk.app.concordance_app.ConcordanceSearchModel.html#search
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.query
nltk.app.concordance_app.ConcordanceSearchModel.html#query
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.last_requested_page
nltk.app.concordance_app.ConcordanceSearchModel.html#last_requested_page
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.next
nltk.app.concordance_app.ConcordanceSearchModel.html#next
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.prev
nltk.app.concordance_app.ConcordanceSearchModel.html#prev
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.reset_results
nltk.app.concordance_app.ConcordanceSearchModel.html#reset_results
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.results
nltk.app.concordance_app.ConcordanceSearchModel.html#results
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.last_page
nltk.app.concordance_app.ConcordanceSearchModel.html#last_page
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.reset_query
nltk.app.concordance_app.ConcordanceSearchModel.html#reset_query
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.set_results
nltk.app.concordance_app.ConcordanceSearchModel.html#set_results
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.get_results
nltk.app.concordance_app.ConcordanceSearchModel.html#get_results
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.has_more_pages
nltk.app.concordance_app.ConcordanceSearchModel.html#has_more_pages
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.__init__
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.model
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.name
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.html#name
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.run
nltk.app.concordance_app.ConcordanceSearchModel.LoadCorpus.html#run
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.__init__
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.model
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.count
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.html#count
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.page
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.html#page
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.run
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.html#run
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.processed_query
nltk.app.concordance_app.ConcordanceSearchModel.SearchCorpus.html#processed_query
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.concordance_app.app
nltk.app.concordance_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.nemo_app.windowTitle
nltk.app.nemo_app.html#windowTitle
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.initialFind
nltk.app.nemo_app.html#initialFind
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.initialRepl
nltk.app.nemo_app.html#initialRepl
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.initialText
nltk.app.nemo_app.html#initialText
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.images
nltk.app.nemo_app.html#images
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.colors
nltk.app.nemo_app.html#colors
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.emphColors
nltk.app.nemo_app.html#emphColors
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.fieldParams
nltk.app.nemo_app.html#fieldParams
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.textParams
nltk.app.nemo_app.html#textParams
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone
nltk.app.nemo_app.Zone.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.__init__
nltk.app.nemo_app.Zone.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.image
nltk.app.nemo_app.Zone.html#image
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.imageDimmed
nltk.app.nemo_app.Zone.html#imageDimmed
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.img
nltk.app.nemo_app.Zone.html#img
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.fld
nltk.app.nemo_app.Zone.html#fld
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.txt
nltk.app.nemo_app.Zone.html#txt
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.initScrollText
nltk.app.nemo_app.Zone.html#initScrollText
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.refresh
nltk.app.nemo_app.Zone.html#refresh
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.nemo_app.Zone.colorCycle
nltk.app.nemo_app.Zone.html#colorCycle
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.FindZone
nltk.app.nemo_app.FindZone.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.nemo_app.FindZone.addTags
nltk.app.nemo_app.FindZone.html#addTags
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.nemo_app.FindZone.substitute
nltk.app.nemo_app.FindZone.html#substitute
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.nemo_app.FindZone.rex
nltk.app.nemo_app.FindZone.html#rex
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.FindZone.rexSel
nltk.app.nemo_app.FindZone.html#rexSel
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.ReplaceZone
nltk.app.nemo_app.ReplaceZone.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.nemo_app.ReplaceZone.addTags
nltk.app.nemo_app.ReplaceZone.html#addTags
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.nemo_app.ReplaceZone.substitute
nltk.app.nemo_app.ReplaceZone.html#substitute
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.nemo_app.ReplaceZone.diff
nltk.app.nemo_app.ReplaceZone.html#diff
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.ReplaceZone.repl
nltk.app.nemo_app.ReplaceZone.html#repl
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.nemo_app.launchRefresh
nltk.app.nemo_app.html#launchRefresh
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.nemo_app.app
nltk.app.nemo_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp
nltk.app.rdparser_app.RecursiveDescentApp.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.app.rdparser_app.RecursiveDescentApp.__init__
nltk.app.rdparser_app.RecursiveDescentApp.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._sent
nltk.app.rdparser_app.RecursiveDescentApp.html#_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._parser
nltk.app.rdparser_app.RecursiveDescentApp.html#_parser
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._top
nltk.app.rdparser_app.RecursiveDescentApp.html#_top
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animation_frames
nltk.app.rdparser_app.RecursiveDescentApp.html#_animation_frames
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animating_lock
nltk.app.rdparser_app.RecursiveDescentApp.html#_animating_lock
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._autostep
nltk.app.rdparser_app.RecursiveDescentApp.html#_autostep
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._show_grammar
nltk.app.rdparser_app.RecursiveDescentApp.html#_show_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._init_fonts
nltk.app.rdparser_app.RecursiveDescentApp.html#_init_fonts
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._sysfont
nltk.app.rdparser_app.RecursiveDescentApp.html#_sysfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._size
nltk.app.rdparser_app.RecursiveDescentApp.html#_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._boldfont
nltk.app.rdparser_app.RecursiveDescentApp.html#_boldfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._font
nltk.app.rdparser_app.RecursiveDescentApp.html#_font
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._bigfont
nltk.app.rdparser_app.RecursiveDescentApp.html#_bigfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._init_grammar
nltk.app.rdparser_app.RecursiveDescentApp.html#_init_grammar
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._prodframe
nltk.app.rdparser_app.RecursiveDescentApp.html#_prodframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._prodlist_label
nltk.app.rdparser_app.RecursiveDescentApp.html#_prodlist_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._prodlist
nltk.app.rdparser_app.RecursiveDescentApp.html#_prodlist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._productions
nltk.app.rdparser_app.RecursiveDescentApp.html#_productions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._init_bindings
nltk.app.rdparser_app.RecursiveDescentApp.html#_init_bindings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._init_buttons
nltk.app.rdparser_app.RecursiveDescentApp.html#_init_buttons
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._buttonframe
nltk.app.rdparser_app.RecursiveDescentApp.html#_buttonframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._configure
nltk.app.rdparser_app.RecursiveDescentApp.html#_configure
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._init_feedback
nltk.app.rdparser_app.RecursiveDescentApp.html#_init_feedback
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._feedbackframe
nltk.app.rdparser_app.RecursiveDescentApp.html#_feedbackframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._lastoper_label
nltk.app.rdparser_app.RecursiveDescentApp.html#_lastoper_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._lastoper1
nltk.app.rdparser_app.RecursiveDescentApp.html#_lastoper1
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._lastoper2
nltk.app.rdparser_app.RecursiveDescentApp.html#_lastoper2
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._init_canvas
nltk.app.rdparser_app.RecursiveDescentApp.html#_init_canvas
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._cframe
nltk.app.rdparser_app.RecursiveDescentApp.html#_cframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._canvas
nltk.app.rdparser_app.RecursiveDescentApp.html#_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._tree
nltk.app.rdparser_app.RecursiveDescentApp.html#_tree
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._textwidgets
nltk.app.rdparser_app.RecursiveDescentApp.html#_textwidgets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._textline
nltk.app.rdparser_app.RecursiveDescentApp.html#_textline
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._get
nltk.app.rdparser_app.RecursiveDescentApp.html#_get
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._redraw
nltk.app.rdparser_app.RecursiveDescentApp.html#_redraw
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._redraw_quick
nltk.app.rdparser_app.RecursiveDescentApp.html#_redraw_quick
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._highlight_nodes
nltk.app.rdparser_app.RecursiveDescentApp.html#_highlight_nodes
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._highlight_prodlist
nltk.app.rdparser_app.RecursiveDescentApp.html#_highlight_prodlist
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._position_text
nltk.app.rdparser_app.RecursiveDescentApp.html#_position_text
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._tree_leaves
nltk.app.rdparser_app.RecursiveDescentApp.html#_tree_leaves
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.destroy
nltk.app.rdparser_app.RecursiveDescentApp.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.reset
nltk.app.rdparser_app.RecursiveDescentApp.html#reset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.autostep
nltk.app.rdparser_app.RecursiveDescentApp.html#autostep
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.cancel_autostep
nltk.app.rdparser_app.RecursiveDescentApp.html#cancel_autostep
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.step
nltk.app.rdparser_app.RecursiveDescentApp.html#step
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.match
nltk.app.rdparser_app.RecursiveDescentApp.html#match
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.expand
nltk.app.rdparser_app.RecursiveDescentApp.html#expand
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.backtrack
nltk.app.rdparser_app.RecursiveDescentApp.html#backtrack
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._step
nltk.app.rdparser_app.RecursiveDescentApp.html#_step
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._expand
nltk.app.rdparser_app.RecursiveDescentApp.html#_expand
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._match
nltk.app.rdparser_app.RecursiveDescentApp.html#_match
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._backtrack
nltk.app.rdparser_app.RecursiveDescentApp.html#_backtrack
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.about
nltk.app.rdparser_app.RecursiveDescentApp.html#about
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.help
nltk.app.rdparser_app.RecursiveDescentApp.html#help
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.postscript
nltk.app.rdparser_app.RecursiveDescentApp.html#postscript
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.mainloop
nltk.app.rdparser_app.RecursiveDescentApp.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.app.rdparser_app.RecursiveDescentApp.resize
nltk.app.rdparser_app.RecursiveDescentApp.html#resize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._toggle_grammar
nltk.app.rdparser_app.RecursiveDescentApp.html#_toggle_grammar
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._prodlist_select
nltk.app.rdparser_app.RecursiveDescentApp.html#_prodlist_select
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animate_expand
nltk.app.rdparser_app.RecursiveDescentApp.html#_animate_expand
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._makeroom
nltk.app.rdparser_app.RecursiveDescentApp.html#_makeroom
ZopeInterfaceFunction
Method
PRIVATE
Make sure that no sibling tree bbox's overlap.
-
nltk.app.rdparser_app.RecursiveDescentApp._animate_expand_frame
nltk.app.rdparser_app.RecursiveDescentApp.html#_animate_expand_frame
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animate_backtrack
nltk.app.rdparser_app.RecursiveDescentApp.html#_animate_backtrack
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animate_backtrack_frame
nltk.app.rdparser_app.RecursiveDescentApp.html#_animate_backtrack_frame
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animate_match_backtrack
nltk.app.rdparser_app.RecursiveDescentApp.html#_animate_match_backtrack
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animate_match
nltk.app.rdparser_app.RecursiveDescentApp.html#_animate_match
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animate_match_frame
nltk.app.rdparser_app.RecursiveDescentApp.html#_animate_match_frame
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp._animate_match_backtrack_frame
nltk.app.rdparser_app.RecursiveDescentApp.html#_animate_match_backtrack_frame
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.edit_grammar
nltk.app.rdparser_app.RecursiveDescentApp.html#edit_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.set_grammar
nltk.app.rdparser_app.RecursiveDescentApp.html#set_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.edit_sentence
nltk.app.rdparser_app.RecursiveDescentApp.html#edit_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.RecursiveDescentApp.set_sentence
nltk.app.rdparser_app.RecursiveDescentApp.html#set_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.rdparser_app.app
nltk.app.rdparser_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Create a recursive descent parser demo, using a simple grammar and text.
-
nltk.app.srparser_app.ShiftReduceApp
nltk.app.srparser_app.ShiftReduceApp.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.app.srparser_app.ShiftReduceApp.__init__
nltk.app.srparser_app.ShiftReduceApp.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._sent
nltk.app.srparser_app.ShiftReduceApp.html#_sent
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._parser
nltk.app.srparser_app.ShiftReduceApp.html#_parser
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._top
nltk.app.srparser_app.ShiftReduceApp.html#_top
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._animating_lock
nltk.app.srparser_app.ShiftReduceApp.html#_animating_lock
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._animate
nltk.app.srparser_app.ShiftReduceApp.html#_animate
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._show_grammar
nltk.app.srparser_app.ShiftReduceApp.html#_show_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._init_fonts
nltk.app.srparser_app.ShiftReduceApp.html#_init_fonts
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._sysfont
nltk.app.srparser_app.ShiftReduceApp.html#_sysfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._size
nltk.app.srparser_app.ShiftReduceApp.html#_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._boldfont
nltk.app.srparser_app.ShiftReduceApp.html#_boldfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._font
nltk.app.srparser_app.ShiftReduceApp.html#_font
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._init_grammar
nltk.app.srparser_app.ShiftReduceApp.html#_init_grammar
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._prodframe
nltk.app.srparser_app.ShiftReduceApp.html#_prodframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._prodlist_label
nltk.app.srparser_app.ShiftReduceApp.html#_prodlist_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._prodlist
nltk.app.srparser_app.ShiftReduceApp.html#_prodlist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._productions
nltk.app.srparser_app.ShiftReduceApp.html#_productions
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._hover
nltk.app.srparser_app.ShiftReduceApp.html#_hover
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._init_bindings
nltk.app.srparser_app.ShiftReduceApp.html#_init_bindings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._init_buttons
nltk.app.srparser_app.ShiftReduceApp.html#_init_buttons
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._buttonframe
nltk.app.srparser_app.ShiftReduceApp.html#_buttonframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._init_feedback
nltk.app.srparser_app.ShiftReduceApp.html#_init_feedback
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._feedbackframe
nltk.app.srparser_app.ShiftReduceApp.html#_feedbackframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._lastoper_label
nltk.app.srparser_app.ShiftReduceApp.html#_lastoper_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._lastoper1
nltk.app.srparser_app.ShiftReduceApp.html#_lastoper1
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._lastoper2
nltk.app.srparser_app.ShiftReduceApp.html#_lastoper2
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._init_canvas
nltk.app.srparser_app.ShiftReduceApp.html#_init_canvas
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._cframe
nltk.app.srparser_app.ShiftReduceApp.html#_cframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._canvas
nltk.app.srparser_app.ShiftReduceApp.html#_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._stackwidgets
nltk.app.srparser_app.ShiftReduceApp.html#_stackwidgets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._rtextwidgets
nltk.app.srparser_app.ShiftReduceApp.html#_rtextwidgets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._titlebar
nltk.app.srparser_app.ShiftReduceApp.html#_titlebar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._exprline
nltk.app.srparser_app.ShiftReduceApp.html#_exprline
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._stacktop
nltk.app.srparser_app.ShiftReduceApp.html#_stacktop
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._stacklabel
nltk.app.srparser_app.ShiftReduceApp.html#_stacklabel
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._rtextlabel
nltk.app.srparser_app.ShiftReduceApp.html#_rtextlabel
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._redraw
nltk.app.srparser_app.ShiftReduceApp.html#_redraw
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._draw_stack_top
nltk.app.srparser_app.ShiftReduceApp.html#_draw_stack_top
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._highlight_productions
nltk.app.srparser_app.ShiftReduceApp.html#_highlight_productions
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.destroy
nltk.app.srparser_app.ShiftReduceApp.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.reset
nltk.app.srparser_app.ShiftReduceApp.html#reset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.step
nltk.app.srparser_app.ShiftReduceApp.html#step
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.shift
nltk.app.srparser_app.ShiftReduceApp.html#shift
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.reduce
nltk.app.srparser_app.ShiftReduceApp.html#reduce
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.undo
nltk.app.srparser_app.ShiftReduceApp.html#undo
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.postscript
nltk.app.srparser_app.ShiftReduceApp.html#postscript
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.mainloop
nltk.app.srparser_app.ShiftReduceApp.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.app.srparser_app.ShiftReduceApp.resize
nltk.app.srparser_app.ShiftReduceApp.html#resize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.help
nltk.app.srparser_app.ShiftReduceApp.html#help
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.about
nltk.app.srparser_app.ShiftReduceApp.html#about
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.edit_grammar
nltk.app.srparser_app.ShiftReduceApp.html#edit_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.set_grammar
nltk.app.srparser_app.ShiftReduceApp.html#set_grammar
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.edit_sentence
nltk.app.srparser_app.ShiftReduceApp.html#edit_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp.set_sentence
nltk.app.srparser_app.ShiftReduceApp.html#set_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._toggle_grammar
nltk.app.srparser_app.ShiftReduceApp.html#_toggle_grammar
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._prodlist_select
nltk.app.srparser_app.ShiftReduceApp.html#_prodlist_select
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._animate_shift
nltk.app.srparser_app.ShiftReduceApp.html#_animate_shift
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._animate_shift_frame
nltk.app.srparser_app.ShiftReduceApp.html#_animate_shift_frame
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._animate_reduce
nltk.app.srparser_app.ShiftReduceApp.html#_animate_reduce
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._animate_reduce_frame
nltk.app.srparser_app.ShiftReduceApp.html#_animate_reduce_frame
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._highlight_hover
nltk.app.srparser_app.ShiftReduceApp.html#_highlight_hover
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.ShiftReduceApp._clear_hover
nltk.app.srparser_app.ShiftReduceApp.html#_clear_hover
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.app.srparser_app.app
nltk.app.srparser_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Create a shift reduce parser app, using a simple grammar and text.
-
nltk.app.wordnet_app.firstClient
nltk.app.wordnet_app.html#firstClient
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.server_mode
nltk.app.wordnet_app.html#server_mode
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.logfile
nltk.app.wordnet_app.html#logfile
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.MyServerHandler
nltk.app.wordnet_app.MyServerHandler.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.app.wordnet_app.MyServerHandler.do_HEAD
nltk.app.wordnet_app.MyServerHandler.html#do_HEAD
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.wordnet_app.MyServerHandler.do_GET
nltk.app.wordnet_app.MyServerHandler.html#do_GET
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.wordnet_app.MyServerHandler.send_head
nltk.app.wordnet_app.MyServerHandler.html#send_head
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.wordnet_app.MyServerHandler.log_message
nltk.app.wordnet_app.MyServerHandler.html#log_message
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.app.wordnet_app.get_unique_counter_from_url
nltk.app.wordnet_app.html#get_unique_counter_from_url
ZopeInterfaceFunction
Function
VISIBLE
Extract the unique counter from the URL if it has one. Otherwise return null.
-
nltk.app.wordnet_app.wnb
nltk.app.wordnet_app.html#wnb
ZopeInterfaceFunction
Function
VISIBLE
Run NLTK Wordnet Browser Server.
-
nltk.app.wordnet_app.startBrowser
nltk.app.wordnet_app.html#startBrowser
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.wordnet_app._pos_tuples
nltk.app.wordnet_app.html#_pos_tuples
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.app.wordnet_app._pos_match
nltk.app.wordnet_app.html#_pos_match
ZopeInterfaceFunction
Function
PRIVATE
This function returns the complete pos tuple for the partial pos tuple given to it. It attempts to match it against the first non-null component of the given pos tuple.
-
nltk.app.wordnet_app.HYPONYM
nltk.app.wordnet_app.html#HYPONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.HYPERNYM
nltk.app.wordnet_app.html#HYPERNYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.CLASS_REGIONAL
nltk.app.wordnet_app.html#CLASS_REGIONAL
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.PART_HOLONYM
nltk.app.wordnet_app.html#PART_HOLONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.PART_MERONYM
nltk.app.wordnet_app.html#PART_MERONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.ATTRIBUTE
nltk.app.wordnet_app.html#ATTRIBUTE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.SUBSTANCE_HOLONYM
nltk.app.wordnet_app.html#SUBSTANCE_HOLONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.SUBSTANCE_MERONYM
nltk.app.wordnet_app.html#SUBSTANCE_MERONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.MEMBER_HOLONYM
nltk.app.wordnet_app.html#MEMBER_HOLONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.MEMBER_MERONYM
nltk.app.wordnet_app.html#MEMBER_MERONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.VERB_GROUP
nltk.app.wordnet_app.html#VERB_GROUP
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.INSTANCE_HYPONYM
nltk.app.wordnet_app.html#INSTANCE_HYPONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.INSTANCE_HYPERNYM
nltk.app.wordnet_app.html#INSTANCE_HYPERNYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.CAUSE
nltk.app.wordnet_app.html#CAUSE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.ALSO_SEE
nltk.app.wordnet_app.html#ALSO_SEE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.SIMILAR
nltk.app.wordnet_app.html#SIMILAR
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.ENTAILMENT
nltk.app.wordnet_app.html#ENTAILMENT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.ANTONYM
nltk.app.wordnet_app.html#ANTONYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.FRAMES
nltk.app.wordnet_app.html#FRAMES
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.PERTAINYM
nltk.app.wordnet_app.html#PERTAINYM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.CLASS_CATEGORY
nltk.app.wordnet_app.html#CLASS_CATEGORY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.CLASS_USAGE
nltk.app.wordnet_app.html#CLASS_USAGE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.DERIVATIONALLY_RELATED_FORM
nltk.app.wordnet_app.html#DERIVATIONALLY_RELATED_FORM
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.INDIRECT_HYPERNYMS
nltk.app.wordnet_app.html#INDIRECT_HYPERNYMS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.lemma_property
nltk.app.wordnet_app.html#lemma_property
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.wordnet_app.rebuild_tree
nltk.app.wordnet_app.html#rebuild_tree
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.wordnet_app.get_relations_data
nltk.app.wordnet_app.html#get_relations_data
ZopeInterfaceFunction
Function
VISIBLE
Get synset relations data for a synset. Note that this doesn't yet support things such as full hyponym vs direct hyponym.
-
nltk.app.wordnet_app.html_trailer
nltk.app.wordnet_app.html#html_trailer
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.explanation
nltk.app.wordnet_app.html#explanation
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app._bold
nltk.app.wordnet_app.html#_bold
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.app.wordnet_app._center
nltk.app.wordnet_app.html#_center
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.app.wordnet_app._hlev
nltk.app.wordnet_app.html#_hlev
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.app.wordnet_app._italic
nltk.app.wordnet_app.html#_italic
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.app.wordnet_app._li
nltk.app.wordnet_app.html#_li
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.app.wordnet_app.pg
nltk.app.wordnet_app.html#pg
ZopeInterfaceFunction
Function
VISIBLE
Return a HTML page of NLTK Browser format constructed from the word and body
-
nltk.app.wordnet_app._ul
nltk.app.wordnet_app.html#_ul
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.app.wordnet_app._abbc
nltk.app.wordnet_app.html#_abbc
ZopeInterfaceFunction
Function
PRIVATE
abbc = asterisks, breaks, bold, center
-
nltk.app.wordnet_app.full_hyponym_cont_text
nltk.app.wordnet_app.html#full_hyponym_cont_text
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app._get_synset
nltk.app.wordnet_app.html#_get_synset
ZopeInterfaceFunction
Function
PRIVATE
The synset key is the unique name of the synset, this can be retrived via synset.name()
-
nltk.app.wordnet_app._collect_one_synset
nltk.app.wordnet_app.html#_collect_one_synset
ZopeInterfaceFunction
Function
PRIVATE
Returns the HTML string for one synset or word
-
nltk.app.wordnet_app._collect_all_synsets
nltk.app.wordnet_app.html#_collect_all_synsets
ZopeInterfaceFunction
Function
PRIVATE
Return a HTML unordered list of synsets for the given word and part of speech.
-
nltk.app.wordnet_app._synset_relations
nltk.app.wordnet_app.html#_synset_relations
ZopeInterfaceFunction
Function
PRIVATE
Builds the HTML string for the relations of a synset
-
nltk.app.wordnet_app.Reference
nltk.app.wordnet_app.Reference.html
ZopeInterfaceClass
Class
VISIBLE
A reference to a page that may be generated by page_word
-
nltk.app.wordnet_app.Reference.__init__
nltk.app.wordnet_app.Reference.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Build a reference to a new page.
-
nltk.app.wordnet_app.Reference.word
nltk.app.wordnet_app.Reference.html#word
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.Reference.synset_relations
nltk.app.wordnet_app.Reference.html#synset_relations
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.app.wordnet_app.Reference.encode
nltk.app.wordnet_app.Reference.html#encode
ZopeInterfaceFunction
Method
VISIBLE
Encode this reference into a string to be used in a URL.
-
nltk.app.wordnet_app.Reference.decode
nltk.app.wordnet_app.Reference.html#decode
ZopeInterfaceFunction
Static Method
VISIBLE
Decode a reference encoded with Reference.encode
-
nltk.app.wordnet_app.Reference.toggle_synset_relation
nltk.app.wordnet_app.Reference.html#toggle_synset_relation
ZopeInterfaceFunction
Method
VISIBLE
Toggle the display of the relations for the given synset and relation type.
-
nltk.app.wordnet_app.Reference.toggle_synset
nltk.app.wordnet_app.Reference.html#toggle_synset
ZopeInterfaceFunction
Method
VISIBLE
Toggle displaying of the relation types for the given synset
-
nltk.app.wordnet_app.make_lookup_link
nltk.app.wordnet_app.html#make_lookup_link
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.wordnet_app.page_from_word
nltk.app.wordnet_app.html#page_from_word
ZopeInterfaceFunction
Function
VISIBLE
Return a HTML page for the given word.
-
nltk.app.wordnet_app.page_from_href
nltk.app.wordnet_app.html#page_from_href
ZopeInterfaceFunction
Function
VISIBLE
Returns a tuple of the HTML page built and the new current word
-
nltk.app.wordnet_app.page_from_reference
nltk.app.wordnet_app.html#page_from_reference
ZopeInterfaceFunction
Function
VISIBLE
Returns a tuple of the HTML page built and the new current word
-
nltk.app.wordnet_app.get_static_page_by_path
nltk.app.wordnet_app.html#get_static_page_by_path
ZopeInterfaceFunction
Function
VISIBLE
Return a static HTML page from the path given.
-
nltk.app.wordnet_app.get_static_web_help_page
nltk.app.wordnet_app.html#get_static_web_help_page
ZopeInterfaceFunction
Function
VISIBLE
Return the static web help page.
-
nltk.app.wordnet_app.get_static_welcome_message
nltk.app.wordnet_app.html#get_static_welcome_message
ZopeInterfaceFunction
Function
VISIBLE
Get the static welcome page.
-
nltk.app.wordnet_app.get_static_index_page
nltk.app.wordnet_app.html#get_static_index_page
ZopeInterfaceFunction
Function
VISIBLE
Get the static index page.
-
nltk.app.wordnet_app.get_static_upper_page
nltk.app.wordnet_app.html#get_static_upper_page
ZopeInterfaceFunction
Function
VISIBLE
Return the upper frame page,
-
nltk.app.wordnet_app.usage
nltk.app.wordnet_app.html#usage
ZopeInterfaceFunction
Function
VISIBLE
Display the command line help message.
-
nltk.app.wordnet_app.app
nltk.app.wordnet_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.wordfreq_app.plot_word_freq_dist
nltk.app.wordfreq_app.html#plot_word_freq_dist
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.app.wordfreq_app.app
nltk.app.wordfreq_app.html#app
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.book.text1
nltk.book.html#text1
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.text2
nltk.book.html#text2
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.text3
nltk.book.html#text3
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.text4
nltk.book.html#text4
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.text5
nltk.book.html#text5
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.text6
nltk.book.html#text6
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.text7
nltk.book.html#text7
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.text8
nltk.book.html#text8
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.text9
nltk.book.html#text9
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.texts
nltk.book.html#texts
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.book.sent1
nltk.book.html#sent1
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sent2
nltk.book.html#sent2
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sent3
nltk.book.html#sent3
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sent4
nltk.book.html#sent4
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sent5
nltk.book.html#sent5
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sent6
nltk.book.html#sent6
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sent7
nltk.book.html#sent7
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sent8
nltk.book.html#sent8
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sent9
nltk.book.html#sent9
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.book.sents
nltk.book.html#sents
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.util.reflections
nltk.chat.util.html#reflections
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.util.Chat
nltk.chat.util.Chat.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 3/6 methods documented
-
nltk.chat.util.Chat.__init__
nltk.chat.util.Chat.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.chat.util.Chat._pairs
nltk.chat.util.Chat.html#_pairs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chat.util.Chat._reflections
nltk.chat.util.Chat.html#_reflections
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chat.util.Chat._regex
nltk.chat.util.Chat.html#_regex
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chat.util.Chat._compile_reflections
nltk.chat.util.Chat.html#_compile_reflections
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.chat.util.Chat._substitute
nltk.chat.util.Chat.html#_substitute
ZopeInterfaceFunction
Method
PRIVATE
Substitute words in the string, according to the specified reflections, e.g. "I'm" -> "you are"
-
nltk.chat.util.Chat._wildcards
nltk.chat.util.Chat.html#_wildcards
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.chat.util.Chat.respond
nltk.chat.util.Chat.html#respond
ZopeInterfaceFunction
Method
VISIBLE
Generate a response to the user input.
-
nltk.chat.util.Chat.converse
nltk.chat.util.Chat.html#converse
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.chat.eliza.pairs
nltk.chat.eliza.html#pairs
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.eliza.eliza_chatbot
nltk.chat.eliza.html#eliza_chatbot
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.eliza.eliza_chat
nltk.chat.eliza.html#eliza_chat
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.eliza.demo
nltk.chat.eliza.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.iesha.reflections
nltk.chat.iesha.html#reflections
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.iesha.pairs
nltk.chat.iesha.html#pairs
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.iesha.iesha_chatbot
nltk.chat.iesha.html#iesha_chatbot
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.iesha.iesha_chat
nltk.chat.iesha.html#iesha_chat
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.iesha.demo
nltk.chat.iesha.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.rude.pairs
nltk.chat.rude.html#pairs
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.rude.rude_chatbot
nltk.chat.rude.html#rude_chatbot
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.rude.rude_chat
nltk.chat.rude.html#rude_chat
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.rude.demo
nltk.chat.rude.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.suntsu.pairs
nltk.chat.suntsu.html#pairs
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.suntsu.suntsu_chatbot
nltk.chat.suntsu.html#suntsu_chatbot
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.suntsu.suntsu_chat
nltk.chat.suntsu.html#suntsu_chat
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.suntsu.demo
nltk.chat.suntsu.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.zen.responses
nltk.chat.zen.html#responses
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.zen.zen_chatbot
nltk.chat.zen.html#zen_chatbot
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.zen.zen_chat
nltk.chat.zen.html#zen_chat
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.zen.demo
nltk.chat.zen.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chat.bots
nltk.chat.html#bots
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.chat.chatbots
nltk.chat.html#chatbots
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants
nltk.sentiment.vader.VaderConstants.html
ZopeInterfaceClass
Class
VISIBLE
A class to keep the Vader lists and constants.
-
nltk.sentiment.vader.VaderConstants.B_INCR
nltk.sentiment.vader.VaderConstants.html#B_INCR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.B_DECR
nltk.sentiment.vader.VaderConstants.html#B_DECR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.C_INCR
nltk.sentiment.vader.VaderConstants.html#C_INCR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.N_SCALAR
nltk.sentiment.vader.VaderConstants.html#N_SCALAR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.NEGATE
nltk.sentiment.vader.VaderConstants.html#NEGATE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.BOOSTER_DICT
nltk.sentiment.vader.VaderConstants.html#BOOSTER_DICT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.SPECIAL_CASE_IDIOMS
nltk.sentiment.vader.VaderConstants.html#SPECIAL_CASE_IDIOMS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.REGEX_REMOVE_PUNCTUATION
nltk.sentiment.vader.VaderConstants.html#REGEX_REMOVE_PUNCTUATION
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.PUNC_LIST
nltk.sentiment.vader.VaderConstants.html#PUNC_LIST
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.__init__
nltk.sentiment.vader.VaderConstants.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sentiment.vader.VaderConstants.negated
nltk.sentiment.vader.VaderConstants.html#negated
ZopeInterfaceFunction
Method
VISIBLE
Determine if input contains negation words
-
nltk.sentiment.vader.VaderConstants.normalize
nltk.sentiment.vader.VaderConstants.html#normalize
ZopeInterfaceFunction
Method
VISIBLE
Normalize the score to be between -1 and 1 using an alpha that approximates the max expected value
-
nltk.sentiment.vader.VaderConstants.scalar_inc_dec
nltk.sentiment.vader.VaderConstants.html#scalar_inc_dec
ZopeInterfaceFunction
Method
VISIBLE
Check if the preceding words increase, decrease, or negate/nullify the valence
-
nltk.sentiment.vader.SentiText
nltk.sentiment.vader.SentiText.html
ZopeInterfaceClass
Class
VISIBLE
Identify sentiment-relevant string-level properties of input text.
-
nltk.sentiment.vader.SentiText.__init__
nltk.sentiment.vader.SentiText.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentiText.text
nltk.sentiment.vader.SentiText.html#text
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentiText.PUNC_LIST
nltk.sentiment.vader.SentiText.html#PUNC_LIST
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentiText.REGEX_REMOVE_PUNCTUATION
nltk.sentiment.vader.SentiText.html#REGEX_REMOVE_PUNCTUATION
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentiText.words_and_emoticons
nltk.sentiment.vader.SentiText.html#words_and_emoticons
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentiText.is_cap_diff
nltk.sentiment.vader.SentiText.html#is_cap_diff
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentiText._words_plus_punc
nltk.sentiment.vader.SentiText.html#_words_plus_punc
ZopeInterfaceFunction
Method
PRIVATE
No summary
-
nltk.sentiment.vader.SentiText._words_and_emoticons
nltk.sentiment.vader.SentiText.html#_words_and_emoticons
ZopeInterfaceFunction
Method
PRIVATE
Removes leading and trailing puncutation Leaves contractions and most emoticons Does not preserve punc-plus-letter emoticons (e.g. :D)
-
nltk.sentiment.vader.SentiText.allcap_differential
nltk.sentiment.vader.SentiText.html#allcap_differential
ZopeInterfaceFunction
Method
VISIBLE
Check whether just some words in the input are ALL CAPS
-
nltk.sentiment.vader.SentimentIntensityAnalyzer
nltk.sentiment.vader.SentimentIntensityAnalyzer.html
ZopeInterfaceClass
Class
VISIBLE
Give a sentiment intensity score to sentences.
-
nltk.sentiment.vader.SentimentIntensityAnalyzer.__init__
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer.lexicon_file
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#lexicon_file
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer.lexicon
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#lexicon
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer.constants
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#constants
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer.make_lex_dict
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#make_lex_dict
ZopeInterfaceFunction
Method
VISIBLE
Convert lexicon file to a dictionary
-
nltk.sentiment.vader.SentimentIntensityAnalyzer.polarity_scores
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#polarity_scores
ZopeInterfaceFunction
Method
VISIBLE
Return a float for sentiment strength based on the input text. Positive values are positive valence, negative value are negative valence.
-
nltk.sentiment.vader.SentimentIntensityAnalyzer.sentiment_valence
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#sentiment_valence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer._least_check
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#_least_check
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer._but_check
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#_but_check
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer._idioms_check
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#_idioms_check
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer._never_check
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#_never_check
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer._punctuation_emphasis
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#_punctuation_emphasis
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer._amplify_ep
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#_amplify_ep
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer._amplify_qm
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#_amplify_qm
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer._sift_sentiment_scores
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#_sift_sentiment_scores
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sentiment.vader.SentimentIntensityAnalyzer.score_valence
nltk.sentiment.vader.SentimentIntensityAnalyzer.html#score_valence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo
nltk.sem.drt_glue_demo.DrtGlueDemo.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/28 instance variable, 1/26 method documented
-
nltk.sem.drt_glue_demo.DrtGlueDemo.__init__
nltk.sem.drt_glue_demo.DrtGlueDemo.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._top
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_top
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._examples
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_examples
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._readingCache
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_readingCache
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._show_grammar
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_show_grammar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._curExample
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_curExample
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._readings
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_readings
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._drs
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_drs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._drsWidget
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_drsWidget
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._error
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_error
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._init_glue
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_init_glue
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._glue
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_glue
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._init_fonts
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_init_fonts
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._sysfont
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_sysfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._size
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_size
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._boldfont
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_boldfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._font
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_font
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._bigfont
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_bigfont
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._init_exampleListbox
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_init_exampleListbox
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._exampleFrame
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_exampleFrame
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._exampleList_label
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_exampleList_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._exampleList
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_exampleList
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._init_readingListbox
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_init_readingListbox
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._readingFrame
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_readingFrame
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._readingList_label
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_readingList_label
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._readingList
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_readingList
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._populate_readingListbox
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_populate_readingListbox
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._init_bindings
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_init_bindings
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._init_buttons
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_init_buttons
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._buttonframe
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_buttonframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._configure
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_configure
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._autostep
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_autostep
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._init_canvas
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_init_canvas
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._cframe
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_cframe
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._canvas
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._tree
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_tree
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._textwidgets
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_textwidgets
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._textline
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_textline
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._redraw
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_redraw
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo.destroy
nltk.sem.drt_glue_demo.DrtGlueDemo.html#destroy
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo.prev
nltk.sem.drt_glue_demo.DrtGlueDemo.html#prev
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._select_previous_example
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_select_previous_example
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo.next
nltk.sem.drt_glue_demo.DrtGlueDemo.html#next
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._select_next_example
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_select_next_example
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo.about
nltk.sem.drt_glue_demo.DrtGlueDemo.html#about
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo.postscript
nltk.sem.drt_glue_demo.DrtGlueDemo.html#postscript
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo.mainloop
nltk.sem.drt_glue_demo.DrtGlueDemo.html#mainloop
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.drt_glue_demo.DrtGlueDemo.resize
nltk.sem.drt_glue_demo.DrtGlueDemo.html#resize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._toggle_remove_duplicates
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_toggle_remove_duplicates
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._exampleList_select
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_exampleList_select
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._exampleList_store_selection
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_exampleList_store_selection
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._readingList_select
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_readingList_select
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrtGlueDemo._readingList_store_selection
nltk.sem.drt_glue_demo.DrtGlueDemo.html#_readingList_store_selection
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrsWidget
nltk.sem.drt_glue_demo.DrsWidget.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrsWidget.__init__
nltk.sem.drt_glue_demo.DrsWidget.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrsWidget._drs
nltk.sem.drt_glue_demo.DrsWidget.html#_drs
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrsWidget._canvas
nltk.sem.drt_glue_demo.DrsWidget.html#_canvas
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.drt_glue_demo.DrsWidget.bbox
nltk.sem.drt_glue_demo.DrsWidget.html#bbox
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrsWidget.draw
nltk.sem.drt_glue_demo.DrsWidget.html#draw
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.DrsWidget.clear
nltk.sem.drt_glue_demo.DrsWidget.html#clear
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.drt_glue_demo.demo
nltk.sem.drt_glue_demo.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.hole.Constants
nltk.sem.hole.Constants.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.ALL
nltk.sem.hole.Constants.html#ALL
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.EXISTS
nltk.sem.hole.Constants.html#EXISTS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.NOT
nltk.sem.hole.Constants.html#NOT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.AND
nltk.sem.hole.Constants.html#AND
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.OR
nltk.sem.hole.Constants.html#OR
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.IMP
nltk.sem.hole.Constants.html#IMP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.IFF
nltk.sem.hole.Constants.html#IFF
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.PRED
nltk.sem.hole.Constants.html#PRED
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.LEQ
nltk.sem.hole.Constants.html#LEQ
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.HOLE
nltk.sem.hole.Constants.html#HOLE
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.LABEL
nltk.sem.hole.Constants.html#LABEL
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constants.MAP
nltk.sem.hole.Constants.html#MAP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.sem.hole.HoleSemantics
nltk.sem.hole.HoleSemantics.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.sem.hole.HoleSemantics.__init__
nltk.sem.hole.HoleSemantics.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.hole.HoleSemantics.holes
nltk.sem.hole.HoleSemantics.html#holes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.hole.HoleSemantics.labels
nltk.sem.hole.HoleSemantics.html#labels
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.hole.HoleSemantics.fragments
nltk.sem.hole.HoleSemantics.html#fragments
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.hole.HoleSemantics.constraints
nltk.sem.hole.HoleSemantics.html#constraints
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.hole.HoleSemantics.top_most_labels
nltk.sem.hole.HoleSemantics.html#top_most_labels
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.hole.HoleSemantics.top_hole
nltk.sem.hole.HoleSemantics.html#top_hole
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.hole.HoleSemantics.is_node
nltk.sem.hole.HoleSemantics.html#is_node
ZopeInterfaceFunction
Method
VISIBLE
Return true if x is a node (label or hole) in this semantic representation.
-
nltk.sem.hole.HoleSemantics._break_down
nltk.sem.hole.HoleSemantics.html#_break_down
ZopeInterfaceFunction
Method
PRIVATE
Extract holes, labels, formula fragments and constraints from the hole semantics underspecified representation (USR).
-
nltk.sem.hole.HoleSemantics._find_top_nodes
nltk.sem.hole.HoleSemantics.html#_find_top_nodes
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.hole.HoleSemantics._find_top_most_labels
nltk.sem.hole.HoleSemantics.html#_find_top_most_labels
ZopeInterfaceFunction
Method
PRIVATE
Return the set of labels which are not referenced directly as part of another formula fragment. These will be the top-most labels for the subtree that they are part of.
-
nltk.sem.hole.HoleSemantics._find_top_hole
nltk.sem.hole.HoleSemantics.html#_find_top_hole
ZopeInterfaceFunction
Method
PRIVATE
Return the hole that will be the top of the formula tree.
-
nltk.sem.hole.HoleSemantics.pluggings
nltk.sem.hole.HoleSemantics.html#pluggings
ZopeInterfaceFunction
Method
VISIBLE
Calculate and return all the legal pluggings (mappings of labels to holes) of this semantics given the constraints.
-
nltk.sem.hole.HoleSemantics._plug_nodes
nltk.sem.hole.HoleSemantics.html#_plug_nodes
ZopeInterfaceFunction
Method
PRIVATE
Plug the nodes in `queue' with the labels in `potential_labels'.
-
nltk.sem.hole.HoleSemantics._plug_hole
nltk.sem.hole.HoleSemantics.html#_plug_hole
ZopeInterfaceFunction
Method
PRIVATE
Try all possible ways of plugging a single hole. See _plug_nodes for the meanings of the parameters.
-
nltk.sem.hole.HoleSemantics._violates_constraints
nltk.sem.hole.HoleSemantics.html#_violates_constraints
ZopeInterfaceFunction
Method
PRIVATE
Return True if the `label' cannot be placed underneath the holes given by the set `ancestors' because it would violate the constraints imposed on it.
-
nltk.sem.hole.HoleSemantics._sanity_check_plugging
nltk.sem.hole.HoleSemantics.html#_sanity_check_plugging
ZopeInterfaceFunction
Method
PRIVATE
Make sure that a given plugging is legal. We recursively go through each node and make sure that no constraints are violated. We also check that all holes have been filled.
-
nltk.sem.hole.HoleSemantics.formula_tree
nltk.sem.hole.HoleSemantics.html#formula_tree
ZopeInterfaceFunction
Method
VISIBLE
Return the first-order logic formula tree for this underspecified representation using the plugging given.
-
nltk.sem.hole.HoleSemantics._formula_tree
nltk.sem.hole.HoleSemantics.html#_formula_tree
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.hole.Constraint
nltk.sem.hole.Constraint.html
ZopeInterfaceClass
Class
VISIBLE
This class represents a constraint of the form (L =< N), where L is a label and N is a node (a label or a hole).
-
nltk.sem.hole.Constraint.__init__
nltk.sem.hole.Constraint.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.hole.Constraint.lhs
nltk.sem.hole.Constraint.html#lhs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constraint.rhs
nltk.sem.hole.Constraint.html#rhs
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.hole.Constraint.__eq__
nltk.sem.hole.Constraint.html#__eq__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.hole.Constraint.__ne__
nltk.sem.hole.Constraint.html#__ne__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.hole.Constraint.__hash__
nltk.sem.hole.Constraint.html#__hash__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.hole.Constraint.__repr__
nltk.sem.hole.Constraint.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.hole.hole_readings
nltk.sem.hole.html#hole_readings
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html
ZopeInterfaceClass
Class
VISIBLE
A Sentiment Analysis tool based on machine learning approaches.
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.__init__
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.classifier
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#classifier
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.all_words
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#all_words
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.apply_features
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#apply_features
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.unigram_word_feats
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#unigram_word_feats
ZopeInterfaceFunction
Method
VISIBLE
Return most common top_n word features.
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.bigram_collocation_feats
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#bigram_collocation_feats
ZopeInterfaceFunction
Method
VISIBLE
Return top_n bigram features (using assoc_measure). Note that this method is based on bigram collocations measures, and not on simple bigram frequency.
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.classify
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#classify
ZopeInterfaceFunction
Method
VISIBLE
Classify a single instance applying the features that have already been stored in the SentimentAnalyzer.
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.train
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#train
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.save_file
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#save_file
ZopeInterfaceFunction
Method
VISIBLE
Store content in filename. Can be used to store a SentimentAnalyzer.
-
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.evaluate
nltk.sentiment.sentiment_analyzer.SentimentAnalyzer.html#evaluate
ZopeInterfaceFunction
Method
VISIBLE
Evaluate and print classifier performance on the test set.
-
nltk.sentiment.util.NEGATION
nltk.sentiment.util.html#NEGATION
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sentiment.util.NEGATION_RE
nltk.sentiment.util.html#NEGATION_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sentiment.util.CLAUSE_PUNCT
nltk.sentiment.util.html#CLAUSE_PUNCT
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sentiment.util.CLAUSE_PUNCT_RE
nltk.sentiment.util.html#CLAUSE_PUNCT_RE
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sentiment.util.HAPPY
nltk.sentiment.util.html#HAPPY
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sentiment.util.SAD
nltk.sentiment.util.html#SAD
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sentiment.util.timer
nltk.sentiment.util.html#timer
ZopeInterfaceFunction
Function
VISIBLE
A timer decorator to measure execution performance of methods.
-
nltk.sentiment.util.mark_negation
nltk.sentiment.util.html#mark_negation
ZopeInterfaceFunction
Function
VISIBLE
Append _NEG suffix to words that appear in the scope between a negation and a punctuation mark.
-
nltk.sentiment.util.output_markdown
nltk.sentiment.util.html#output_markdown
ZopeInterfaceFunction
Function
VISIBLE
Write the output of an analysis to a file.
-
nltk.sentiment.util.split_train_test
nltk.sentiment.util.html#split_train_test
ZopeInterfaceFunction
Function
VISIBLE
Randomly split n instances of the dataset into train and test sets.
-
nltk.sentiment.util._show_plot
nltk.sentiment.util.html#_show_plot
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.sentiment.util.json2csv_preprocess
nltk.sentiment.util.html#json2csv_preprocess
ZopeInterfaceFunction
Function
VISIBLE
Convert json file to csv file, preprocessing each row to obtain a suitable dataset for tweets Semantic Analysis.
-
nltk.sentiment.util.demo_movie_reviews
nltk.sentiment.util.html#demo_movie_reviews
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.sentiment.util.demo_subjectivity
nltk.sentiment.util.html#demo_subjectivity
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.sentiment.util.demo_sent_subjectivity
nltk.sentiment.util.html#demo_sent_subjectivity
ZopeInterfaceFunction
Function
VISIBLE
Classify a single sentence as subjective or objective using a stored SentimentAnalyzer.
-
nltk.sentiment.util.demo_liu_hu_lexicon
nltk.sentiment.util.html#demo_liu_hu_lexicon
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.sentiment.util.demo_vader_instance
nltk.sentiment.util.html#demo_vader_instance
ZopeInterfaceFunction
Function
VISIBLE
Output polarity scores for a text using Vader approach.
-
nltk.sentiment.util.svm
nltk.sentiment.util.html#svm
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem
nltk.stem.arlstem.ARLSTem.html
ZopeInterfaceClass
Class
VISIBLE
No summary
-
nltk.stem.arlstem.ARLSTem.__init__
nltk.stem.arlstem.ARLSTem.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.re_hamzated_alif
nltk.stem.arlstem.ARLSTem.html#re_hamzated_alif
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.re_alifMaqsura
nltk.stem.arlstem.ARLSTem.html#re_alifMaqsura
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.re_diacritics
nltk.stem.arlstem.ARLSTem.html#re_diacritics
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.pr2
nltk.stem.arlstem.ARLSTem.html#pr2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.pr3
nltk.stem.arlstem.ARLSTem.html#pr3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.pr32
nltk.stem.arlstem.ARLSTem.html#pr32
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.pr4
nltk.stem.arlstem.ARLSTem.html#pr4
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.su2
nltk.stem.arlstem.ARLSTem.html#su2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.su22
nltk.stem.arlstem.ARLSTem.html#su22
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.su3
nltk.stem.arlstem.ARLSTem.html#su3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.su32
nltk.stem.arlstem.ARLSTem.html#su32
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.pl_si2
nltk.stem.arlstem.ARLSTem.html#pl_si2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.pl_si3
nltk.stem.arlstem.ARLSTem.html#pl_si3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.verb_su2
nltk.stem.arlstem.ARLSTem.html#verb_su2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.verb_pr2
nltk.stem.arlstem.ARLSTem.html#verb_pr2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.verb_pr22
nltk.stem.arlstem.ARLSTem.html#verb_pr22
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.verb_pr33
nltk.stem.arlstem.ARLSTem.html#verb_pr33
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.verb_suf3
nltk.stem.arlstem.ARLSTem.html#verb_suf3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.verb_suf2
nltk.stem.arlstem.ARLSTem.html#verb_suf2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.verb_suf1
nltk.stem.arlstem.ARLSTem.html#verb_suf1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem.ARLSTem.stem
nltk.stem.arlstem.ARLSTem.html#stem
ZopeInterfaceFunction
Method
VISIBLE
call this function to get the word's stem based on ARLSTem .
-
nltk.stem.arlstem.ARLSTem.norm
nltk.stem.arlstem.ARLSTem.html#norm
ZopeInterfaceFunction
Method
VISIBLE
normalize the word by removing diacritics, replacing hamzated Alif with Alif replacing AlifMaqsura with Yaa and removing Waaw at the beginning.
-
nltk.stem.arlstem.ARLSTem.pref
nltk.stem.arlstem.ARLSTem.html#pref
ZopeInterfaceFunction
Method
VISIBLE
remove prefixes from the words' beginning.
-
nltk.stem.arlstem.ARLSTem.suff
nltk.stem.arlstem.ARLSTem.html#suff
ZopeInterfaceFunction
Method
VISIBLE
remove suffixes from the word's end.
-
nltk.stem.arlstem.ARLSTem.fem2masc
nltk.stem.arlstem.ARLSTem.html#fem2masc
ZopeInterfaceFunction
Method
VISIBLE
transform the word from the feminine form to the masculine form.
-
nltk.stem.arlstem.ARLSTem.plur2sing
nltk.stem.arlstem.ARLSTem.html#plur2sing
ZopeInterfaceFunction
Method
VISIBLE
transform the word from the plural form to the singular form.
-
nltk.stem.arlstem.ARLSTem.verb
nltk.stem.arlstem.ARLSTem.html#verb
ZopeInterfaceFunction
Method
VISIBLE
stem the verb prefixes and suffixes or both
-
nltk.stem.arlstem.ARLSTem.verb_t1
nltk.stem.arlstem.ARLSTem.html#verb_t1
ZopeInterfaceFunction
Method
VISIBLE
stem the present prefixes and suffixes
-
nltk.stem.arlstem.ARLSTem.verb_t2
nltk.stem.arlstem.ARLSTem.html#verb_t2
ZopeInterfaceFunction
Method
VISIBLE
stem the future prefixes and suffixes
-
nltk.stem.arlstem.ARLSTem.verb_t3
nltk.stem.arlstem.ARLSTem.html#verb_t3
ZopeInterfaceFunction
Method
VISIBLE
stem the present suffixes
-
nltk.stem.arlstem.ARLSTem.verb_t4
nltk.stem.arlstem.ARLSTem.html#verb_t4
ZopeInterfaceFunction
Method
VISIBLE
stem the present prefixes
-
nltk.stem.arlstem.ARLSTem.verb_t5
nltk.stem.arlstem.ARLSTem.html#verb_t5
ZopeInterfaceFunction
Method
VISIBLE
stem the future prefixes
-
nltk.stem.arlstem.ARLSTem.verb_t6
nltk.stem.arlstem.ARLSTem.html#verb_t6
ZopeInterfaceFunction
Method
VISIBLE
stem the order prefixes
-
nltk.stem.arlstem2.ARLSTem2
nltk.stem.arlstem2.ARLSTem2.html
ZopeInterfaceClass
Class
VISIBLE
Return a stemmed Arabic word after removing affixes. This an improved version of the previous algorithm, which reduces under-stemming errors. Typically used in Arabic search engine, information retrieval and NLP.
-
nltk.stem.arlstem2.ARLSTem2.__init__
nltk.stem.arlstem2.ARLSTem2.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.re_hamzated_alif
nltk.stem.arlstem2.ARLSTem2.html#re_hamzated_alif
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.re_alifMaqsura
nltk.stem.arlstem2.ARLSTem2.html#re_alifMaqsura
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.re_diacritics
nltk.stem.arlstem2.ARLSTem2.html#re_diacritics
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.pr2
nltk.stem.arlstem2.ARLSTem2.html#pr2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.pr3
nltk.stem.arlstem2.ARLSTem2.html#pr3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.pr32
nltk.stem.arlstem2.ARLSTem2.html#pr32
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.pr4
nltk.stem.arlstem2.ARLSTem2.html#pr4
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.su2
nltk.stem.arlstem2.ARLSTem2.html#su2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.su22
nltk.stem.arlstem2.ARLSTem2.html#su22
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.su3
nltk.stem.arlstem2.ARLSTem2.html#su3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.su32
nltk.stem.arlstem2.ARLSTem2.html#su32
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.pl_si2
nltk.stem.arlstem2.ARLSTem2.html#pl_si2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.pl_si3
nltk.stem.arlstem2.ARLSTem2.html#pl_si3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.verb_su2
nltk.stem.arlstem2.ARLSTem2.html#verb_su2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.verb_pr2
nltk.stem.arlstem2.ARLSTem2.html#verb_pr2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.verb_pr22
nltk.stem.arlstem2.ARLSTem2.html#verb_pr22
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.verb_pr33
nltk.stem.arlstem2.ARLSTem2.html#verb_pr33
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.verb_suf3
nltk.stem.arlstem2.ARLSTem2.html#verb_suf3
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.verb_suf2
nltk.stem.arlstem2.ARLSTem2.html#verb_suf2
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.verb_suf1
nltk.stem.arlstem2.ARLSTem2.html#verb_suf1
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.stem1
nltk.stem.arlstem2.ARLSTem2.html#stem1
ZopeInterfaceFunction
Method
VISIBLE
call this function to get the first stem
-
nltk.stem.arlstem2.ARLSTem2.is_verb
nltk.stem.arlstem2.ARLSTem2.html#is_verb
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.stem.arlstem2.ARLSTem2.stem
nltk.stem.arlstem2.ARLSTem2.html#stem
ZopeInterfaceFunction
Method
VISIBLE
Strip affixes from the token and return the stem.
-
nltk.stem.arlstem2.ARLSTem2.norm
nltk.stem.arlstem2.ARLSTem2.html#norm
ZopeInterfaceFunction
Method
VISIBLE
normalize the word by removing diacritics, replace hamzated Alif with Alif bare, replace AlifMaqsura with Yaa and remove Waaw at the beginning.
-
nltk.stem.arlstem2.ARLSTem2.pref
nltk.stem.arlstem2.ARLSTem2.html#pref
ZopeInterfaceFunction
Method
VISIBLE
remove prefixes from the words' beginning.
-
nltk.stem.arlstem2.ARLSTem2.adjective
nltk.stem.arlstem2.ARLSTem2.html#adjective
ZopeInterfaceFunction
Method
VISIBLE
remove the infixes from adjectives
-
nltk.stem.arlstem2.ARLSTem2.suff
nltk.stem.arlstem2.ARLSTem2.html#suff
ZopeInterfaceFunction
Method
VISIBLE
remove the suffixes from the word's ending.
-
nltk.stem.arlstem2.ARLSTem2.fem2masc
nltk.stem.arlstem2.ARLSTem2.html#fem2masc
ZopeInterfaceFunction
Method
VISIBLE
transform the word from the feminine form to the masculine form.
-
nltk.stem.arlstem2.ARLSTem2.plur2sing
nltk.stem.arlstem2.ARLSTem2.html#plur2sing
ZopeInterfaceFunction
Method
VISIBLE
transform the word from the plural form to the singular form.
-
nltk.stem.arlstem2.ARLSTem2.verb
nltk.stem.arlstem2.ARLSTem2.html#verb
ZopeInterfaceFunction
Method
VISIBLE
stem the verb prefixes and suffixes or both
-
nltk.stem.arlstem2.ARLSTem2.verb_t1
nltk.stem.arlstem2.ARLSTem2.html#verb_t1
ZopeInterfaceFunction
Method
VISIBLE
stem the present tense co-occurred prefixes and suffixes
-
nltk.stem.arlstem2.ARLSTem2.verb_t2
nltk.stem.arlstem2.ARLSTem2.html#verb_t2
ZopeInterfaceFunction
Method
VISIBLE
stem the future tense co-occurred prefixes and suffixes
-
nltk.stem.arlstem2.ARLSTem2.verb_t3
nltk.stem.arlstem2.ARLSTem2.html#verb_t3
ZopeInterfaceFunction
Method
VISIBLE
stem the present tense suffixes
-
nltk.stem.arlstem2.ARLSTem2.verb_t4
nltk.stem.arlstem2.ARLSTem2.html#verb_t4
ZopeInterfaceFunction
Method
VISIBLE
stem the present tense prefixes
-
nltk.stem.arlstem2.ARLSTem2.verb_t5
nltk.stem.arlstem2.ARLSTem2.html#verb_t5
ZopeInterfaceFunction
Method
VISIBLE
stem the future tense prefixes
-
nltk.stem.arlstem2.ARLSTem2.verb_t6
nltk.stem.arlstem2.ARLSTem2.html#verb_t6
ZopeInterfaceFunction
Method
VISIBLE
stem the imperative tense prefixes
-
nltk.test.gluesemantics_malt_fixt.setup_module
nltk.test.gluesemantics_malt_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tbl.demo.demo
nltk.tbl.demo.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Run a demo with defaults. See source comments for details, or docstrings of any of the more specific demo_* functions.
-
nltk.tbl.demo.demo_repr_rule_format
nltk.tbl.demo.html#demo_repr_rule_format
ZopeInterfaceFunction
Function
VISIBLE
Exemplify repr(Rule) (see also str(Rule) and Rule.format("verbose"))
-
nltk.tbl.demo.demo_str_rule_format
nltk.tbl.demo.html#demo_str_rule_format
ZopeInterfaceFunction
Function
VISIBLE
Exemplify repr(Rule) (see also str(Rule) and Rule.format("verbose"))
-
nltk.tbl.demo.demo_verbose_rule_format
nltk.tbl.demo.html#demo_verbose_rule_format
ZopeInterfaceFunction
Function
VISIBLE
Exemplify Rule.format("verbose")
-
nltk.tbl.demo.demo_multiposition_feature
nltk.tbl.demo.html#demo_multiposition_feature
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.tbl.demo.demo_multifeature_template
nltk.tbl.demo.html#demo_multifeature_template
ZopeInterfaceFunction
Function
VISIBLE
Templates can have more than a single feature.
-
nltk.tbl.demo.demo_template_statistics
nltk.tbl.demo.html#demo_template_statistics
ZopeInterfaceFunction
Function
VISIBLE
Show aggregate statistics per template. Little used templates are candidates for deletion, much used templates may possibly be refined.
-
nltk.tbl.demo.demo_generated_templates
nltk.tbl.demo.html#demo_generated_templates
ZopeInterfaceFunction
Function
VISIBLE
Template.expand and Feature.expand are class methods facilitating generating large amounts of templates. See their documentation for details.
-
nltk.tbl.demo.demo_learning_curve
nltk.tbl.demo.html#demo_learning_curve
ZopeInterfaceFunction
Function
VISIBLE
Plot a learning curve -- the contribution on tagging accuracy of the individual rules. Note: requires matplotlib
-
nltk.tbl.demo.demo_error_analysis
nltk.tbl.demo.html#demo_error_analysis
ZopeInterfaceFunction
Function
VISIBLE
Writes a file with context for each erroneous word after tagging testing data
-
nltk.tbl.demo.demo_serialize_tagger
nltk.tbl.demo.html#demo_serialize_tagger
ZopeInterfaceFunction
Function
VISIBLE
Serializes the learned tagger to a file in pickle format; reloads it and validates the process.
-
nltk.tbl.demo.demo_high_accuracy_rules
nltk.tbl.demo.html#demo_high_accuracy_rules
ZopeInterfaceFunction
Function
VISIBLE
Discard rules with low accuracy. This may hurt performance a bit, but will often produce rules which are more interesting read to a human.
-
nltk.tbl.demo.postag
nltk.tbl.demo.html#postag
ZopeInterfaceFunction
Function
VISIBLE
Brill Tagger Demonstration :param templates: how many sentences of training and testing data to use :type templates: list of Template
-
nltk.tbl.demo._demo_prepare_data
nltk.tbl.demo.html#_demo_prepare_data
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tbl.demo._demo_plot
nltk.tbl.demo.html#_demo_plot
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.tbl.demo.NN_CD_TAGGER
nltk.tbl.demo.html#NN_CD_TAGGER
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tbl.demo.REGEXP_TAGGER
nltk.tbl.demo.html#REGEXP_TAGGER
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.tbl.demo.corpus_size
nltk.tbl.demo.html#corpus_size
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.childes_fixt.setup_module
nltk.test.childes_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.conftest.mock_plot
nltk.test.conftest.html#mock_plot
ZopeInterfaceFunction
Function
VISIBLE
Disable matplotlib plotting in test code
-
nltk.test.conftest.teardown_loaded_corpora
nltk.test.conftest.html#teardown_loaded_corpora
ZopeInterfaceFunction
Function
VISIBLE
After each test session ends (either doctest or unit test), unload any loaded corpora
-
nltk.test.all.additional_tests
nltk.test.all.html#additional_tests
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.classify_fixt.setup_module
nltk.test.classify_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.inference_fixt.setup_module
nltk.test.inference_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.gensim_fixt.setup_module
nltk.test.gensim_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.discourse_fixt.setup_module
nltk.test.discourse_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.nonmonotonic_fixt.setup_module
nltk.test.nonmonotonic_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization
nltk.test.unit.test_json_serialization.TestJSONSerialization.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.setUp
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#setUp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.corpus
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#corpus
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.decoder
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#decoder
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.encoder
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#encoder
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.default_tagger
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#default_tagger
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.test_default_tagger
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#test_default_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.test_regexp_tagger
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#test_regexp_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.test_affix_tagger
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#test_affix_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.test_ngram_taggers
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#test_ngram_taggers
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.test_perceptron_tagger
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#test_perceptron_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json_serialization.TestJSONSerialization.test_brill_tagger
nltk.test.unit.test_json_serialization.TestJSONSerialization.html#test_brill_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.portuguese_en_fixt.setup_module
nltk.test.portuguese_en_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.probability_fixt.setup_module
nltk.test.probability_fixt.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models._prepare_test_data
nltk.test.unit.lm.test_models.html#_prepare_test_data
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.test.unit.lm.test_models.ParametrizedTests
nltk.test.unit.lm.test_models.ParametrizedTests.html
ZopeInterfaceClass
Class
VISIBLE
Metaclass for generating parametrized tests.
-
nltk.test.unit.lm.test_models.ParametrizedTests.contexts
nltk.test.unit.lm.test_models.ParametrizedTests.html#contexts
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.ParametrizedTests.__new__
nltk.test.unit.lm.test_models.ParametrizedTests.html#__new__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.ParametrizedTests.test_sum_to_1
nltk.test.unit.lm.test_models.ParametrizedTests.html#test_sum_to_1
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.ParametrizedTests.add_score_test
nltk.test.unit.lm.test_models.ParametrizedTests.html#add_score_test
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleBigram
nltk.test.unit.lm.test_models.TestMleBigram.html
ZopeInterfaceClass
Class
VISIBLE
Unit tests for MLE ngram model.
-
nltk.test.unit.lm.test_models.TestMleBigram.score_tests
nltk.test.unit.lm.test_models.TestMleBigram.html#score_tests
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleBigram.setup_method
nltk.test.unit.lm.test_models.TestMleBigram.html#setup_method
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleBigram.model
nltk.test.unit.lm.test_models.TestMleBigram.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleBigram.test_logscore_zero_score
nltk.test.unit.lm.test_models.TestMleBigram.html#test_logscore_zero_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleBigram.test_entropy_perplexity_seen
nltk.test.unit.lm.test_models.TestMleBigram.html#test_entropy_perplexity_seen
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleBigram.test_entropy_perplexity_unseen
nltk.test.unit.lm.test_models.TestMleBigram.html#test_entropy_perplexity_unseen
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleBigram.test_entropy_perplexity_unigrams
nltk.test.unit.lm.test_models.TestMleBigram.html#test_entropy_perplexity_unigrams
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleTrigram
nltk.test.unit.lm.test_models.TestMleTrigram.html
ZopeInterfaceClass
Class
VISIBLE
MLE trigram model tests
-
nltk.test.unit.lm.test_models.TestMleTrigram.score_tests
nltk.test.unit.lm.test_models.TestMleTrigram.html#score_tests
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleTrigram.setup_method
nltk.test.unit.lm.test_models.TestMleTrigram.html#setup_method
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestMleTrigram.model
nltk.test.unit.lm.test_models.TestMleTrigram.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneBigram
nltk.test.unit.lm.test_models.TestLidstoneBigram.html
ZopeInterfaceClass
Class
VISIBLE
Unit tests for Lidstone class
-
nltk.test.unit.lm.test_models.TestLidstoneBigram.score_tests
nltk.test.unit.lm.test_models.TestLidstoneBigram.html#score_tests
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneBigram.setup_method
nltk.test.unit.lm.test_models.TestLidstoneBigram.html#setup_method
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneBigram.model
nltk.test.unit.lm.test_models.TestLidstoneBigram.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneBigram.test_gamma
nltk.test.unit.lm.test_models.TestLidstoneBigram.html#test_gamma
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneBigram.test_entropy_perplexity
nltk.test.unit.lm.test_models.TestLidstoneBigram.html#test_entropy_perplexity
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneTrigram
nltk.test.unit.lm.test_models.TestLidstoneTrigram.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneTrigram.score_tests
nltk.test.unit.lm.test_models.TestLidstoneTrigram.html#score_tests
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneTrigram.setup_method
nltk.test.unit.lm.test_models.TestLidstoneTrigram.html#setup_method
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLidstoneTrigram.model
nltk.test.unit.lm.test_models.TestLidstoneTrigram.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLaplaceBigram
nltk.test.unit.lm.test_models.TestLaplaceBigram.html
ZopeInterfaceClass
Class
VISIBLE
Unit tests for Laplace class
-
nltk.test.unit.lm.test_models.TestLaplaceBigram.score_tests
nltk.test.unit.lm.test_models.TestLaplaceBigram.html#score_tests
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLaplaceBigram.setup_method
nltk.test.unit.lm.test_models.TestLaplaceBigram.html#setup_method
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLaplaceBigram.model
nltk.test.unit.lm.test_models.TestLaplaceBigram.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLaplaceBigram.test_gamma
nltk.test.unit.lm.test_models.TestLaplaceBigram.html#test_gamma
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestLaplaceBigram.test_entropy_perplexity
nltk.test.unit.lm.test_models.TestLaplaceBigram.html#test_entropy_perplexity
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestWittenBellInterpolatedTrigram
nltk.test.unit.lm.test_models.TestWittenBellInterpolatedTrigram.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestWittenBellInterpolatedTrigram.setup_method
nltk.test.unit.lm.test_models.TestWittenBellInterpolatedTrigram.html#setup_method
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestWittenBellInterpolatedTrigram.model
nltk.test.unit.lm.test_models.TestWittenBellInterpolatedTrigram.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestWittenBellInterpolatedTrigram.score_tests
nltk.test.unit.lm.test_models.TestWittenBellInterpolatedTrigram.html#score_tests
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestKneserNeyInterpolatedTrigram
nltk.test.unit.lm.test_models.TestKneserNeyInterpolatedTrigram.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestKneserNeyInterpolatedTrigram.setup_method
nltk.test.unit.lm.test_models.TestKneserNeyInterpolatedTrigram.html#setup_method
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestKneserNeyInterpolatedTrigram.model
nltk.test.unit.lm.test_models.TestKneserNeyInterpolatedTrigram.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestKneserNeyInterpolatedTrigram.score_tests
nltk.test.unit.lm.test_models.TestKneserNeyInterpolatedTrigram.html#score_tests
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html
ZopeInterfaceClass
Class
VISIBLE
Using MLE model, generate some text.
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.setup_method
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#setup_method
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.model
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#model
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.test_generate_one_no_context
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#test_generate_one_no_context
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.test_generate_one_limiting_context
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#test_generate_one_limiting_context
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.test_generate_one_varied_context
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#test_generate_one_varied_context
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.test_generate_cycle
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#test_generate_cycle
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.test_generate_with_text_seed
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#test_generate_with_text_seed
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.test_generate_oov_text_seed
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#test_generate_oov_text_seed
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.test_generate_None_text_seed
nltk.test.unit.lm.test_models.TestNgramModelTextGeneration.html#test_generate_None_text_seed
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_brill.TestBrill
nltk.test.unit.test_brill.TestBrill.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_brill.TestBrill.test_pos_template
nltk.test.unit.test_brill.TestBrill.html#test_pos_template
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_brill.TestBrill.test_brill_demo
nltk.test.unit.test_brill.TestBrill.html#test_brill_demo
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter
nltk.test.unit.lm.test_counter.TestNgramCounter.html
ZopeInterfaceClass
Class
VISIBLE
Tests for NgramCounter that only involve lookup, no modification.
-
nltk.test.unit.lm.test_counter.TestNgramCounter.setup_class
nltk.test.unit.lm.test_counter.TestNgramCounter.html#setup_class
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.trigram_counter
nltk.test.unit.lm.test_counter.TestNgramCounter.html#trigram_counter
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.bigram_counter
nltk.test.unit.lm.test_counter.TestNgramCounter.html#bigram_counter
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.case
nltk.test.unit.lm.test_counter.TestNgramCounter.html#case
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.test_N
nltk.test.unit.lm.test_counter.TestNgramCounter.html#test_N
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.test_counter_len_changes_with_lookup
nltk.test.unit.lm.test_counter.TestNgramCounter.html#test_counter_len_changes_with_lookup
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.test_ngram_order_access_unigrams
nltk.test.unit.lm.test_counter.TestNgramCounter.html#test_ngram_order_access_unigrams
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.test_ngram_conditional_freqdist
nltk.test.unit.lm.test_counter.TestNgramCounter.html#test_ngram_conditional_freqdist
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.test_bigram_counts_seen_ngrams
nltk.test.unit.lm.test_counter.TestNgramCounter.html#test_bigram_counts_seen_ngrams
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.test_bigram_counts_unseen_ngrams
nltk.test.unit.lm.test_counter.TestNgramCounter.html#test_bigram_counts_unseen_ngrams
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.test_unigram_counts_seen_words
nltk.test.unit.lm.test_counter.TestNgramCounter.html#test_unigram_counts_seen_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounter.test_unigram_counts_completely_unseen_words
nltk.test.unit.lm.test_counter.TestNgramCounter.html#test_unigram_counts_completely_unseen_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.setup_class
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html#setup_class
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.counter
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html#counter
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.case
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html#case
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.test_empty_inputs
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html#test_empty_inputs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.test_train_on_unigrams
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html#test_train_on_unigrams
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.test_train_on_illegal_sentences
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html#test_train_on_illegal_sentences
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.test_train_on_bigrams
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html#test_train_on_bigrams
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.test_train_on_mix
nltk.test.unit.lm.test_counter.TestNgramCounterTraining.html#test_train_on_mix
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_aline.TestAline
nltk.test.unit.test_aline.TestAline.html
ZopeInterfaceClass
Class
VISIBLE
Test Aline algorithm for aligning phonetic sequences
-
nltk.test.unit.test_aline.TestAline.test_aline
nltk.test.unit.test_aline.TestAline.html#test_aline
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_aline.TestAline.test_aline_delta
nltk.test.unit.test_aline.TestAline.html#test_aline_delta
ZopeInterfaceFunction
Method
VISIBLE
Test aline for computing the difference between two segments
-
nltk.test.unit.lm.test_preprocessing.TestPreprocessing
nltk.test.unit.lm.test_preprocessing.TestPreprocessing.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_preprocessing.TestPreprocessing.test_padded_everygram_pipeline
nltk.test.unit.lm.test_preprocessing.TestPreprocessing.html#test_padded_everygram_pipeline
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html
ZopeInterfaceClass
Class
VISIBLE
tests Vocabulary Class
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.setUpClass
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#setUpClass
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_truthiness
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_truthiness
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_cutoff_value_set_correctly
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_cutoff_value_set_correctly
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_unable_to_change_cutoff
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_unable_to_change_cutoff
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_cutoff_setter_checks_value
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_cutoff_setter_checks_value
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_counts_set_correctly
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_counts_set_correctly
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_membership_check_respects_cutoff
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_membership_check_respects_cutoff
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_vocab_len_respects_cutoff
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_vocab_len_respects_cutoff
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_vocab_iter_respects_cutoff
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_vocab_iter_respects_cutoff
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_update_empty_vocab
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_update_empty_vocab
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_lookup
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_lookup
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_lookup_iterables
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_lookup_iterables
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_lookup_empty_iterables
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_lookup_empty_iterables
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_lookup_recursive
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_lookup_recursive
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_lookup_None
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_lookup_None
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_lookup_int
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_lookup_int
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_lookup_empty_str
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_lookup_empty_str
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_eqality
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_eqality
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_str
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_str
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_creation_with_counter
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_creation_with_counter
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.test_len_is_constant
nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests.html#test_len_is_constant
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_cfd_mutation.TestEmptyCondFreq
nltk.test.unit.test_cfd_mutation.TestEmptyCondFreq.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_cfd_mutation.TestEmptyCondFreq.test_tabulate
nltk.test.unit.test_cfd_mutation.TestEmptyCondFreq.html#test_tabulate
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_cfd_mutation.TestEmptyCondFreq.test_plot
nltk.test.unit.test_cfd_mutation.TestEmptyCondFreq.html#test_plot
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_cfd_mutation.TestEmptyCondFreq.test_increment
nltk.test.unit.test_cfd_mutation.TestEmptyCondFreq.html#test_increment
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_cfg2chomsky.ChomskyNormalFormForCFGTest
nltk.test.unit.test_cfg2chomsky.ChomskyNormalFormForCFGTest.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_cfg2chomsky.ChomskyNormalFormForCFGTest.test_simple
nltk.test.unit.test_cfg2chomsky.ChomskyNormalFormForCFGTest.html#test_simple
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_cfg2chomsky.ChomskyNormalFormForCFGTest.test_complex
nltk.test.unit.test_cfg2chomsky.ChomskyNormalFormForCFGTest.html#test_complex
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_chunk.TestChunkRule
nltk.test.unit.test_chunk.TestChunkRule.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 method documented
-
nltk.test.unit.test_chunk.TestChunkRule.test_tag_pattern2re_pattern_quantifier
nltk.test.unit.test_chunk.TestChunkRule.html#test_tag_pattern2re_pattern_quantifier
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.test.unit.test_classify.TRAIN
nltk.test.unit.test_classify.html#TRAIN
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_classify.TEST
nltk.test.unit.test_classify.html#TEST
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_classify.RESULTS
nltk.test.unit.test_classify.html#RESULTS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_classify.assert_classifier_correct
nltk.test.unit.test_classify.html#assert_classifier_correct
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_classify.test_megam
nltk.test.unit.test_classify.html#test_megam
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_classify.test_tadm
nltk.test.unit.test_classify.html#test_tadm
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_collocations._EPSILON
nltk.test.unit.test_collocations.html#_EPSILON
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.test.unit.test_collocations.close_enough
nltk.test.unit.test_collocations.html#close_enough
ZopeInterfaceFunction
Function
VISIBLE
Verify that two sequences of n-gram association values are within _EPSILON of each other.
-
nltk.test.unit.test_collocations.TestBigram
nltk.test.unit.test_collocations.TestBigram.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_collocations.TestBigram.test_bigram2
nltk.test.unit.test_collocations.TestBigram.html#test_bigram2
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_collocations.TestBigram.test_bigram3
nltk.test.unit.test_collocations.TestBigram.html#test_bigram3
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_collocations.TestBigram.test_bigram5
nltk.test.unit.test_collocations.TestBigram.html#test_bigram5
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.stdout_redirect
nltk.test.unit.test_concordance.html#stdout_redirect
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance
nltk.test.unit.test_concordance.TestConcordance.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.test.unit.test_concordance.TestConcordance.setUpClass
nltk.test.unit.test_concordance.TestConcordance.html#setUpClass
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.tearDownClass
nltk.test.unit.test_concordance.TestConcordance.html#tearDownClass
ZopeInterfaceFunction
Class Method
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.setUp
nltk.test.unit.test_concordance.TestConcordance.html#setUp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.text
nltk.test.unit.test_concordance.TestConcordance.html#text
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.query
nltk.test.unit.test_concordance.TestConcordance.html#query
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.maxDiff
nltk.test.unit.test_concordance.TestConcordance.html#maxDiff
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.list_out
nltk.test.unit.test_concordance.TestConcordance.html#list_out
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.tearDown
nltk.test.unit.test_concordance.TestConcordance.html#tearDown
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.test_concordance_list
nltk.test.unit.test_concordance.TestConcordance.html#test_concordance_list
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.test_concordance_width
nltk.test.unit.test_concordance.TestConcordance.html#test_concordance_width
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.test_concordance_lines
nltk.test.unit.test_concordance.TestConcordance.html#test_concordance_lines
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_concordance.TestConcordance.test_concordance_print
nltk.test.unit.test_concordance.TestConcordance.html#test_concordance_print
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.setup_module
nltk.test.unit.test_corenlp.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.teardown_module
nltk.test.unit.test_corenlp.html#teardown_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestTokenizerAPI
nltk.test.unit.test_corenlp.TestTokenizerAPI.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestTokenizerAPI.test_tokenize
nltk.test.unit.test_corenlp.TestTokenizerAPI.html#test_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestTaggerAPI
nltk.test.unit.test_corenlp.TestTaggerAPI.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestTaggerAPI.test_pos_tagger
nltk.test.unit.test_corenlp.TestTaggerAPI.html#test_pos_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestTaggerAPI.test_ner_tagger
nltk.test.unit.test_corenlp.TestTaggerAPI.html#test_ner_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestTaggerAPI.test_unexpected_tagtype
nltk.test.unit.test_corenlp.TestTaggerAPI.html#test_unexpected_tagtype
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestParserAPI
nltk.test.unit.test_corenlp.TestParserAPI.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestParserAPI.test_parse
nltk.test.unit.test_corenlp.TestParserAPI.html#test_parse
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corenlp.TestParserAPI.test_dependency_parser
nltk.test.unit.test_corenlp.TestParserAPI.html#test_dependency_parser
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestUdhr
nltk.test.unit.test_corpora.TestUdhr.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestUdhr.test_words
nltk.test.unit.test_corpora.TestUdhr.html#test_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestUdhr.test_raw_unicode
nltk.test.unit.test_corpora.TestUdhr.html#test_raw_unicode
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestIndian
nltk.test.unit.test_corpora.TestIndian.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestIndian.test_words
nltk.test.unit.test_corpora.TestIndian.html#test_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestIndian.test_tagged_words
nltk.test.unit.test_corpora.TestIndian.html#test_tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestCess
nltk.test.unit.test_corpora.TestCess.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestCess.test_catalan
nltk.test.unit.test_corpora.TestCess.html#test_catalan
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestCess.test_esp
nltk.test.unit.test_corpora.TestCess.html#test_esp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestFloresta
nltk.test.unit.test_corpora.TestFloresta.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestFloresta.test_words
nltk.test.unit.test_corpora.TestFloresta.html#test_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestSinicaTreebank
nltk.test.unit.test_corpora.TestSinicaTreebank.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestSinicaTreebank.test_sents
nltk.test.unit.test_corpora.TestSinicaTreebank.html#test_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestSinicaTreebank.test_parsed_sents
nltk.test.unit.test_corpora.TestSinicaTreebank.html#test_parsed_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestCoNLL2007
nltk.test.unit.test_corpora.TestCoNLL2007.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestCoNLL2007.test_sents
nltk.test.unit.test_corpora.TestCoNLL2007.html#test_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestCoNLL2007.test_parsed_sents
nltk.test.unit.test_corpora.TestCoNLL2007.html#test_parsed_sents
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestPTB
nltk.test.unit.test_corpora.TestPTB.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestPTB.test_fileids
nltk.test.unit.test_corpora.TestPTB.html#test_fileids
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestPTB.test_words
nltk.test.unit.test_corpora.TestPTB.html#test_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestPTB.test_tagged_words
nltk.test.unit.test_corpora.TestPTB.html#test_tagged_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestPTB.test_categories
nltk.test.unit.test_corpora.TestPTB.html#test_categories
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestPTB.test_news_fileids
nltk.test.unit.test_corpora.TestPTB.html#test_news_fileids
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestPTB.test_category_words
nltk.test.unit.test_corpora.TestPTB.html#test_category_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestMWAPPDB
nltk.test.unit.test_corpora.TestMWAPPDB.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestMWAPPDB.test_fileids
nltk.test.unit.test_corpora.TestMWAPPDB.html#test_fileids
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpora.TestMWAPPDB.test_entries
nltk.test.unit.test_corpora.TestMWAPPDB.html#test_entries
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpus_views.TestCorpusViews
nltk.test.unit.test_corpus_views.TestCorpusViews.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_corpus_views.TestCorpusViews.linetok
nltk.test.unit.test_corpus_views.TestCorpusViews.html#linetok
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_corpus_views.TestCorpusViews.names
nltk.test.unit.test_corpus_views.TestCorpusViews.html#names
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_corpus_views.TestCorpusViews.data
nltk.test.unit.test_corpus_views.TestCorpusViews.html#data
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpus_views.TestCorpusViews.test_correct_values
nltk.test.unit.test_corpus_views.TestCorpusViews.html#test_correct_values
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_corpus_views.TestCorpusViews.test_correct_length
nltk.test.unit.test_corpus_views.TestCorpusViews.html#test_correct_length
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_data.TestData
nltk.test.unit.test_data.TestData.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_data.TestData.test_find_raises_exception
nltk.test.unit.test_data.TestData.html#test_find_raises_exception
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_data.TestData.test_find_raises_exception_with_full_resource_name
nltk.test.unit.test_data.TestData.html#test_find_raises_exception_with_full_resource_name
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_disagreement.TestDisagreement
nltk.test.unit.test_disagreement.TestDisagreement.html
ZopeInterfaceClass
Class
VISIBLE
Class containing unit tests for nltk.metrics.agreement.Disagreement.
-
nltk.test.unit.test_disagreement.TestDisagreement.test_easy
nltk.test.unit.test_disagreement.TestDisagreement.html#test_easy
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.test.unit.test_disagreement.TestDisagreement.test_easy2
nltk.test.unit.test_disagreement.TestDisagreement.html#test_easy2
ZopeInterfaceFunction
Method
VISIBLE
Same simple test with 1 rating removed. Removal of that rating should not matter: K-Apha ignores items with only 1 rating.
-
nltk.test.unit.test_disagreement.TestDisagreement.test_advanced
nltk.test.unit.test_disagreement.TestDisagreement.html#test_advanced
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.test.unit.test_disagreement.TestDisagreement.test_advanced2
nltk.test.unit.test_disagreement.TestDisagreement.html#test_advanced2
ZopeInterfaceFunction
Method
VISIBLE
Same more advanced example, but with 1 rating removed. Again, removal of that 1 rating shoudl not matter.
-
nltk.test.unit.test_freqdist.TestFreqDist
nltk.test.unit.test_freqdist.TestFreqDist.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_freqdist.TestFreqDist.test_iterating_returns_an_iterator_ordered_by_frequency
nltk.test.unit.test_freqdist.TestFreqDist.html#test_iterating_returns_an_iterator_ordered_by_frequency
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_hmm._wikipedia_example_hmm
nltk.test.unit.test_hmm.html#_wikipedia_example_hmm
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.test.unit.test_hmm.test_forward_probability
nltk.test.unit.test_hmm.html#test_forward_probability
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_hmm.test_forward_probability2
nltk.test.unit.test_hmm.html#test_forward_probability2
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_hmm.test_backward_probability
nltk.test.unit.test_hmm.html#test_backward_probability
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_hmm.setup_module
nltk.test.unit.test_hmm.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.are_files_identical
nltk.test.unit.test_json2csv_corpus.html#are_files_identical
ZopeInterfaceFunction
Function
VISIBLE
Compare two files, ignoring carriage returns.
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/3 instance variable, 1/14 method documented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.setUp
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#setUp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.infile
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#infile
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.msg
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#msg
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.subdir
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#subdir
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.tearDown
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#tearDown
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.test_textoutput
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#test_textoutput
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.test_user_metadata
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#test_user_metadata
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.test_userurl
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#test_userurl
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.test_file_is_wrong
nltk.test.unit.test_json2csv_corpus.TestJSON2CSV.html#test_file_is_wrong
ZopeInterfaceFunction
Method
VISIBLE
Sanity check that file comparison is not giving false positives.
-
nltk.inference.nonmonotonic.ProverParseError
nltk.inference.nonmonotonic.ProverParseError.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.get_domain
nltk.inference.nonmonotonic.html#get_domain
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.ClosedDomainProver
nltk.inference.nonmonotonic.ClosedDomainProver.html
ZopeInterfaceClass
Class
VISIBLE
This is a prover decorator that adds domain closure assumptions before proving.
-
nltk.inference.nonmonotonic.ClosedDomainProver.assumptions
nltk.inference.nonmonotonic.ClosedDomainProver.html#assumptions
ZopeInterfaceFunction
Method
VISIBLE
List the current assumptions.
-
nltk.inference.nonmonotonic.ClosedDomainProver.goal
nltk.inference.nonmonotonic.ClosedDomainProver.html#goal
ZopeInterfaceFunction
Method
VISIBLE
Return the goal
-
nltk.inference.nonmonotonic.ClosedDomainProver.replace_quants
nltk.inference.nonmonotonic.ClosedDomainProver.html#replace_quants
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.inference.nonmonotonic.UniqueNamesProver
nltk.inference.nonmonotonic.UniqueNamesProver.html
ZopeInterfaceClass
Class
VISIBLE
This is a prover decorator that adds unique names assumptions before proving.
-
nltk.inference.nonmonotonic.UniqueNamesProver.assumptions
nltk.inference.nonmonotonic.UniqueNamesProver.html#assumptions
ZopeInterfaceFunction
Method
VISIBLE
- Domain = union([e.free()|e.constants() for e in all_expressions]) - if "d1 = d2" cannot be proven from the premises, then add "d1 != d2"
-
nltk.inference.nonmonotonic.SetHolder
nltk.inference.nonmonotonic.SetHolder.html
ZopeInterfaceClass
Class
VISIBLE
A list of sets of Variables.
-
nltk.inference.nonmonotonic.SetHolder.__getitem__
nltk.inference.nonmonotonic.SetHolder.html#__getitem__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.inference.nonmonotonic.ClosedWorldProver
nltk.inference.nonmonotonic.ClosedWorldProver.html
ZopeInterfaceClass
Class
VISIBLE
This is a prover decorator that completes predicates before proving.
-
nltk.inference.nonmonotonic.ClosedWorldProver.assumptions
nltk.inference.nonmonotonic.ClosedWorldProver.html#assumptions
ZopeInterfaceFunction
Method
VISIBLE
List the current assumptions.
-
nltk.inference.nonmonotonic.ClosedWorldProver._make_unique_signature
nltk.inference.nonmonotonic.ClosedWorldProver.html#_make_unique_signature
ZopeInterfaceFunction
Method
PRIVATE
This method figures out how many arguments the predicate takes and returns a tuple containing that number of unique variables.
-
nltk.inference.nonmonotonic.ClosedWorldProver._make_antecedent
nltk.inference.nonmonotonic.ClosedWorldProver.html#_make_antecedent
ZopeInterfaceFunction
Method
PRIVATE
Return an application expression with 'predicate' as the predicate and 'signature' as the list of arguments.
-
nltk.inference.nonmonotonic.ClosedWorldProver._make_predicate_dict
nltk.inference.nonmonotonic.ClosedWorldProver.html#_make_predicate_dict
ZopeInterfaceFunction
Method
PRIVATE
Create a dictionary of predicates from the assumptions.
-
nltk.inference.nonmonotonic.ClosedWorldProver._map_predicates
nltk.inference.nonmonotonic.ClosedWorldProver.html#_map_predicates
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder
nltk.inference.nonmonotonic.PredHolder.html
ZopeInterfaceClass
Class
VISIBLE
This class will be used by a dictionary that will store information about predicates to be used by the ClosedWorldProver.
-
nltk.inference.nonmonotonic.PredHolder.__init__
nltk.inference.nonmonotonic.PredHolder.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder.signatures
nltk.inference.nonmonotonic.PredHolder.html#signatures
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder.properties
nltk.inference.nonmonotonic.PredHolder.html#properties
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder.signature_len
nltk.inference.nonmonotonic.PredHolder.html#signature_len
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder.append_sig
nltk.inference.nonmonotonic.PredHolder.html#append_sig
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder.append_prop
nltk.inference.nonmonotonic.PredHolder.html#append_prop
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder.validate_sig_len
nltk.inference.nonmonotonic.PredHolder.html#validate_sig_len
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder.__str__
nltk.inference.nonmonotonic.PredHolder.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.PredHolder.__repr__
nltk.inference.nonmonotonic.PredHolder.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.closed_domain_demo
nltk.inference.nonmonotonic.html#closed_domain_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.unique_names_demo
nltk.inference.nonmonotonic.html#unique_names_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.closed_world_demo
nltk.inference.nonmonotonic.html#closed_world_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.combination_prover_demo
nltk.inference.nonmonotonic.html#combination_prover_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.default_reasoning_demo
nltk.inference.nonmonotonic.html#default_reasoning_demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.print_proof
nltk.inference.nonmonotonic.html#print_proof
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.inference.nonmonotonic.demo
nltk.inference.nonmonotonic.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.chat80.borders
nltk.sem.chat80.html#borders
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.contains
nltk.sem.chat80.html#contains
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.city
nltk.sem.chat80.html#city
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.country
nltk.sem.chat80.html#country
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.circle_of_lat
nltk.sem.chat80.html#circle_of_lat
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.circle_of_long
nltk.sem.chat80.html#circle_of_long
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.continent
nltk.sem.chat80.html#continent
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.region
nltk.sem.chat80.html#region
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.ocean
nltk.sem.chat80.html#ocean
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.sea
nltk.sem.chat80.html#sea
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.items
nltk.sem.chat80.html#items
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.item_metadata
nltk.sem.chat80.html#item_metadata
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.rels
nltk.sem.chat80.html#rels
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.not_unary
nltk.sem.chat80.html#not_unary
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.Concept
nltk.sem.chat80.Concept.html
ZopeInterfaceClass
Class
VISIBLE
-
nltk.sem.chat80.Concept.__init__
nltk.sem.chat80.Concept.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.sem.chat80.Concept.prefLabel
nltk.sem.chat80.Concept.html#prefLabel
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.Concept.arity
nltk.sem.chat80.Concept.html#arity
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.Concept.altLabels
nltk.sem.chat80.Concept.html#altLabels
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.Concept.closures
nltk.sem.chat80.Concept.html#closures
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.Concept._extension
nltk.sem.chat80.Concept.html#_extension
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.sem.chat80.Concept.extension
nltk.sem.chat80.Concept.html#extension
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.chat80.Concept.__str__
nltk.sem.chat80.Concept.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.chat80.Concept.__repr__
nltk.sem.chat80.Concept.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.sem.chat80.Concept.augment
nltk.sem.chat80.Concept.html#augment
ZopeInterfaceFunction
Method
VISIBLE
Add more data to the Concept's extension set.
-
nltk.sem.chat80.Concept._make_graph
nltk.sem.chat80.Concept.html#_make_graph
ZopeInterfaceFunction
Method
PRIVATE
Convert a set of pairs into an adjacency linked list encoding of a graph.
-
nltk.sem.chat80.Concept._transclose
nltk.sem.chat80.Concept.html#_transclose
ZopeInterfaceFunction
Method
PRIVATE
Compute the transitive closure of a graph represented as a linked list.
-
nltk.sem.chat80.Concept._make_pairs
nltk.sem.chat80.Concept.html#_make_pairs
ZopeInterfaceFunction
Method
PRIVATE
Convert an adjacency linked list back into a set of pairs.
-
nltk.sem.chat80.Concept.close
nltk.sem.chat80.Concept.html#close
ZopeInterfaceFunction
Method
VISIBLE
Close a binary relation in the Concept's extension set.
-
nltk.sem.chat80.clause2concepts
nltk.sem.chat80.html#clause2concepts
ZopeInterfaceFunction
Function
VISIBLE
Convert a file of Prolog clauses into a list of Concept objects.
-
nltk.sem.chat80.cities2table
nltk.sem.chat80.html#cities2table
ZopeInterfaceFunction
Function
VISIBLE
Convert a file of Prolog clauses into a database table.
-
nltk.sem.chat80.sql_query
nltk.sem.chat80.html#sql_query
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.sem.chat80._str2records
nltk.sem.chat80.html#_str2records
ZopeInterfaceFunction
Function
PRIVATE
Read a file into memory and convert each relation clause into a list.
-
nltk.sem.chat80.unary_concept
nltk.sem.chat80.html#unary_concept
ZopeInterfaceFunction
Function
VISIBLE
Make a unary concept out of the primary key in a record.
-
nltk.sem.chat80.binary_concept
nltk.sem.chat80.html#binary_concept
ZopeInterfaceFunction
Function
VISIBLE
Make a binary concept out of the primary key and another field in a record.
-
nltk.sem.chat80.process_bundle
nltk.sem.chat80.html#process_bundle
ZopeInterfaceFunction
Function
VISIBLE
Given a list of relation metadata bundles, make a corresponding dictionary of concepts, indexed by the relation name.
-
nltk.sem.chat80.make_valuation
nltk.sem.chat80.html#make_valuation
ZopeInterfaceFunction
Function
VISIBLE
Convert a list of Concept objects into a list of (label, extension) pairs; optionally create a Valuation object.
-
nltk.sem.chat80.val_dump
nltk.sem.chat80.html#val_dump
ZopeInterfaceFunction
Function
VISIBLE
Make a Valuation from a list of relation metadata bundles and dump to persistent database.
-
nltk.sem.chat80.val_load
nltk.sem.chat80.html#val_load
ZopeInterfaceFunction
Function
VISIBLE
Load a Valuation from a persistent database.
-
nltk.sem.chat80.label_indivs
nltk.sem.chat80.html#label_indivs
ZopeInterfaceFunction
Function
VISIBLE
Assign individual constants to the individuals in the domain of a Valuation.
-
nltk.sem.chat80.make_lex
nltk.sem.chat80.html#make_lex
ZopeInterfaceFunction
Function
VISIBLE
Create lexical CFG rules for each individual symbol.
-
nltk.sem.chat80.concepts
nltk.sem.chat80.html#concepts
ZopeInterfaceFunction
Function
VISIBLE
Build a list of concepts corresponding to the relation names in items.
-
nltk.sem.chat80.main
nltk.sem.chat80.html#main
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.sem.chat80.sql_demo
nltk.sem.chat80.html#sql_demo
ZopeInterfaceFunction
Function
VISIBLE
Print out every row from the 'city.db' database.
-
nltk.misc.sort.selection
nltk.misc.sort.html#selection
ZopeInterfaceFunction
Function
VISIBLE
Selection Sort: scan the list to find its smallest element, then swap it with the first element. The remainder of the list is one element smaller; apply the same method to this list, and so on.
-
nltk.misc.sort.bubble
nltk.misc.sort.html#bubble
ZopeInterfaceFunction
Function
VISIBLE
No summary
-
nltk.misc.sort._merge_lists
nltk.misc.sort.html#_merge_lists
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.misc.sort.merge
nltk.misc.sort.html#merge
ZopeInterfaceFunction
Function
VISIBLE
Merge Sort: split the list in half, and sort each half, then combine the sorted halves.
-
nltk.misc.sort._partition
nltk.misc.sort.html#_partition
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.misc.sort._quick
nltk.misc.sort.html#_quick
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.misc.sort.quick
nltk.misc.sort.html#quick
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.misc.sort.demo
nltk.misc.sort.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.generate.generate
nltk.parse.generate.html#generate
ZopeInterfaceFunction
Function
VISIBLE
Generates an iterator of all sentences from a CFG.
-
nltk.parse.generate._generate_all
nltk.parse.generate.html#_generate_all
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.parse.generate._generate_one
nltk.parse.generate.html#_generate_one
ZopeInterfaceFunction
Function
PRIVATE
Undocumented
-
nltk.parse.generate.demo_grammar
nltk.parse.generate.html#demo_grammar
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.parse.generate.demo
nltk.parse.generate.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.parse.stanford._stanford_url
nltk.parse.stanford.html#_stanford_url
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser
nltk.parse.stanford.GenericStanfordParser.html
ZopeInterfaceClass
Class
VISIBLE
Interface to the Stanford Parser
-
nltk.parse.stanford.GenericStanfordParser._MODEL_JAR_PATTERN
nltk.parse.stanford.GenericStanfordParser.html#_MODEL_JAR_PATTERN
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser._JAR
nltk.parse.stanford.GenericStanfordParser.html#_JAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser._MAIN_CLASS
nltk.parse.stanford.GenericStanfordParser.html#_MAIN_CLASS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser._USE_STDIN
nltk.parse.stanford.GenericStanfordParser.html#_USE_STDIN
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser._DOUBLE_SPACED_OUTPUT
nltk.parse.stanford.GenericStanfordParser.html#_DOUBLE_SPACED_OUTPUT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser.__init__
nltk.parse.stanford.GenericStanfordParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser._classpath
nltk.parse.stanford.GenericStanfordParser.html#_classpath
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser.model_path
nltk.parse.stanford.GenericStanfordParser.html#model_path
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser._encoding
nltk.parse.stanford.GenericStanfordParser.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser.corenlp_options
nltk.parse.stanford.GenericStanfordParser.html#corenlp_options
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser.java_options
nltk.parse.stanford.GenericStanfordParser.html#java_options
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser._parse_trees_output
nltk.parse.stanford.GenericStanfordParser.html#_parse_trees_output
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.stanford.GenericStanfordParser.parse_sents
nltk.parse.stanford.GenericStanfordParser.html#parse_sents
ZopeInterfaceFunction
Method
VISIBLE
No summary
-
nltk.parse.stanford.GenericStanfordParser.raw_parse
nltk.parse.stanford.GenericStanfordParser.html#raw_parse
ZopeInterfaceFunction
Method
VISIBLE
Use StanfordParser to parse a sentence. Takes a sentence as a string; before parsing, it will be automatically tokenized and tagged by the Stanford Parser.
-
nltk.parse.stanford.GenericStanfordParser.raw_parse_sents
nltk.parse.stanford.GenericStanfordParser.html#raw_parse_sents
ZopeInterfaceFunction
Method
VISIBLE
Use StanfordParser to parse multiple sentences. Takes multiple sentences as a list of strings. Each sentence will be automatically tokenized and tagged by the Stanford Parser.
-
nltk.parse.stanford.GenericStanfordParser.tagged_parse
nltk.parse.stanford.GenericStanfordParser.html#tagged_parse
ZopeInterfaceFunction
Method
VISIBLE
Use StanfordParser to parse a sentence. Takes a sentence as a list of (word, tag) tuples; the sentence must have already been tokenized and tagged.
-
nltk.parse.stanford.GenericStanfordParser.tagged_parse_sents
nltk.parse.stanford.GenericStanfordParser.html#tagged_parse_sents
ZopeInterfaceFunction
Method
VISIBLE
Use StanfordParser to parse multiple sentences. Takes multiple sentences where each sentence is a list of (word, tag) tuples. The sentences must have already been tokenized and tagged.
-
nltk.parse.stanford.GenericStanfordParser._execute
nltk.parse.stanford.GenericStanfordParser.html#_execute
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordParser
nltk.parse.stanford.StanfordParser.html
ZopeInterfaceClass
Class
VISIBLE
>>> parser=StanfordParser( ... model_path="edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" ... )
-
nltk.parse.stanford.StanfordParser._OUTPUT_FORMAT
nltk.parse.stanford.StanfordParser.html#_OUTPUT_FORMAT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordParser.__init__
nltk.parse.stanford.StanfordParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.stanford.StanfordParser._make_tree
nltk.parse.stanford.StanfordParser.html#_make_tree
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordDependencyParser
nltk.parse.stanford.StanfordDependencyParser.html
ZopeInterfaceClass
Class
VISIBLE
>>> dep_parser=StanfordDependencyParser( ... model_path="edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" ... )
-
nltk.parse.stanford.StanfordDependencyParser._OUTPUT_FORMAT
nltk.parse.stanford.StanfordDependencyParser.html#_OUTPUT_FORMAT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordDependencyParser.__init__
nltk.parse.stanford.StanfordDependencyParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.stanford.StanfordDependencyParser._make_tree
nltk.parse.stanford.StanfordDependencyParser.html#_make_tree
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordNeuralDependencyParser
nltk.parse.stanford.StanfordNeuralDependencyParser.html
ZopeInterfaceClass
Class
VISIBLE
>>> from nltk.parse.stanford import StanfordNeuralDependencyParser >>> dep_parser=StanfordNeuralDependencyParser(java_options='-mx4g')
-
nltk.parse.stanford.StanfordNeuralDependencyParser._OUTPUT_FORMAT
nltk.parse.stanford.StanfordNeuralDependencyParser.html#_OUTPUT_FORMAT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordNeuralDependencyParser._MAIN_CLASS
nltk.parse.stanford.StanfordNeuralDependencyParser.html#_MAIN_CLASS
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordNeuralDependencyParser._JAR
nltk.parse.stanford.StanfordNeuralDependencyParser.html#_JAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordNeuralDependencyParser._MODEL_JAR_PATTERN
nltk.parse.stanford.StanfordNeuralDependencyParser.html#_MODEL_JAR_PATTERN
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordNeuralDependencyParser._USE_STDIN
nltk.parse.stanford.StanfordNeuralDependencyParser.html#_USE_STDIN
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordNeuralDependencyParser._DOUBLE_SPACED_OUTPUT
nltk.parse.stanford.StanfordNeuralDependencyParser.html#_DOUBLE_SPACED_OUTPUT
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.parse.stanford.StanfordNeuralDependencyParser.__init__
nltk.parse.stanford.StanfordNeuralDependencyParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.parse.stanford.StanfordNeuralDependencyParser.tagged_parse_sents
nltk.parse.stanford.StanfordNeuralDependencyParser.html#tagged_parse_sents
ZopeInterfaceFunction
Method
VISIBLE
Currently unimplemented because the neural dependency parser (and the StanfordCoreNLP pipeline class) doesn't support passing in pre- tagged tokens.
-
nltk.parse.stanford.StanfordNeuralDependencyParser._make_tree
nltk.parse.stanford.StanfordNeuralDependencyParser.html#_make_tree
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.sem.cooper_storage.CooperStore
nltk.sem.cooper_storage.CooperStore.html
ZopeInterfaceClass
Class
VISIBLE
A container for handling quantifier ambiguity via Cooper storage.
-
nltk.sem.cooper_storage.CooperStore.__init__
nltk.sem.cooper_storage.CooperStore.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.sem.cooper_storage.CooperStore.featstruct
nltk.sem.cooper_storage.CooperStore.html#featstruct
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.cooper_storage.CooperStore.readings
nltk.sem.cooper_storage.CooperStore.html#readings
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.cooper_storage.CooperStore.core
nltk.sem.cooper_storage.CooperStore.html#core
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.cooper_storage.CooperStore.store
nltk.sem.cooper_storage.CooperStore.html#store
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.sem.cooper_storage.CooperStore._permute
nltk.sem.cooper_storage.CooperStore.html#_permute
ZopeInterfaceFunction
Method
PRIVATE
-
nltk.sem.cooper_storage.CooperStore.s_retrieve
nltk.sem.cooper_storage.CooperStore.html#s_retrieve
ZopeInterfaceFunction
Method
VISIBLE
Carry out S-Retrieval of binding operators in store. If hack=True, serialize the bindop and core as strings and reparse. Ugh.
-
nltk.sem.cooper_storage.parse_with_bindops
nltk.sem.cooper_storage.html#parse_with_bindops
ZopeInterfaceFunction
Function
VISIBLE
Use a grammar with Binding Operators to parse a sentence.
-
nltk.sem.cooper_storage.demo
nltk.sem.cooper_storage.html#demo
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.cli.CONTEXT_SETTINGS
nltk.cli.html#CONTEXT_SETTINGS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.cli.cli
nltk.cli.html#cli
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.cli.tokenize_file
nltk.cli.html#tokenize_file
ZopeInterfaceFunction
Function
VISIBLE
This command tokenizes text stream using nltk.word_tokenize
-
nltk.test.unit.translate.test_gdfa.TestGDFA
nltk.test.unit.translate.test_gdfa.TestGDFA.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/1 method documented
-
nltk.test.unit.translate.test_gdfa.TestGDFA.test_from_eflomal_outputs
nltk.test.unit.translate.test_gdfa.TestGDFA.html#test_from_eflomal_outputs
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.test.unit.test_metrics._DELTA
nltk.test.unit.test_metrics.html#_DELTA
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.test.unit.test_metrics.TestLikelihoodRatio
nltk.test.unit.test_metrics.TestLikelihoodRatio.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_metrics.TestLikelihoodRatio.test_lr_bigram
nltk.test.unit.test_metrics.TestLikelihoodRatio.html#test_lr_bigram
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_metrics.TestLikelihoodRatio.test_lr_trigram
nltk.test.unit.test_metrics.TestLikelihoodRatio.html#test_lr_trigram
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_metrics.TestLikelihoodRatio.test_lr_quadgram
nltk.test.unit.test_metrics.TestLikelihoodRatio.html#test_lr_quadgram
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_naivebayes.NaiveBayesClassifierTest
nltk.test.unit.test_naivebayes.NaiveBayesClassifierTest.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_naivebayes.NaiveBayesClassifierTest.test_simple
nltk.test.unit.test_naivebayes.NaiveBayesClassifierTest.html#test_simple
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_nombank.NombankDemo
nltk.test.unit.test_nombank.NombankDemo.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_nombank.NombankDemo.test_numbers
nltk.test.unit.test_nombank.NombankDemo.html#test_numbers
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_nombank.NombankDemo.test_instance
nltk.test.unit.test_nombank.NombankDemo.html#test_instance
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_nombank.NombankDemo.test_framefiles_fileids
nltk.test.unit.test_nombank.NombankDemo.html#test_framefiles_fileids
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_pl196x.TestCorpusViews
nltk.test.unit.test_pl196x.TestCorpusViews.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_pl196x.TestCorpusViews.test_corpus_reader
nltk.test.unit.test_pl196x.TestCorpusViews.html#test_corpus_reader
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_pos_tag.TestPosTag
nltk.test.unit.test_pos_tag.TestPosTag.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_pos_tag.TestPosTag.test_pos_tag_eng
nltk.test.unit.test_pos_tag.TestPosTag.html#test_pos_tag_eng
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_pos_tag.TestPosTag.test_pos_tag_eng_universal
nltk.test.unit.test_pos_tag.TestPosTag.html#test_pos_tag_eng_universal
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_pos_tag.TestPosTag.test_pos_tag_rus
nltk.test.unit.test_pos_tag.TestPosTag.html#test_pos_tag_rus
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_pos_tag.TestPosTag.test_pos_tag_rus_universal
nltk.test.unit.test_pos_tag.TestPosTag.html#test_pos_tag_rus_universal
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_pos_tag.TestPosTag.test_pos_tag_unknown_lang
nltk.test.unit.test_pos_tag.TestPosTag.html#test_pos_tag_unknown_lang
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_pos_tag.TestPosTag.test_unspecified_lang
nltk.test.unit.test_pos_tag.TestPosTag.html#test_unspecified_lang
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_rte_classify.TestRTEClassifier
nltk.test.unit.test_rte_classify.TestRTEClassifier.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_rte_classify.TestRTEClassifier.test_rte_classification_without_megam
nltk.test.unit.test_rte_classify.TestRTEClassifier.html#test_rte_classification_without_megam
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_rte_classify.TestRTEClassifier.test_rte_classification_with_megam
nltk.test.unit.test_rte_classify.TestRTEClassifier.html#test_rte_classification_with_megam
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_seekable_unicode_stream_reader.check_reader
nltk.test.unit.test_seekable_unicode_stream_reader.html#check_reader
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_seekable_unicode_stream_reader.ENCODINGS
nltk.test.unit.test_seekable_unicode_stream_reader.html#ENCODINGS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_seekable_unicode_stream_reader.STRINGS
nltk.test.unit.test_seekable_unicode_stream_reader.html#STRINGS
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_seekable_unicode_stream_reader.test_reader
nltk.test.unit.test_seekable_unicode_stream_reader.html#test_reader
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_seekable_unicode_stream_reader.test_reader_stream_closes_when_deleted
nltk.test.unit.test_seekable_unicode_stream_reader.html#test_reader_stream_closes_when_deleted
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_seekable_unicode_stream_reader.teardown_module
nltk.test.unit.test_seekable_unicode_stream_reader.html#teardown_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_senna.SENNA_EXECUTABLE_PATH
nltk.test.unit.test_senna.html#SENNA_EXECUTABLE_PATH
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_senna.senna_is_installed
nltk.test.unit.test_senna.html#senna_is_installed
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_senna.TestSennaPipeline
nltk.test.unit.test_senna.TestSennaPipeline.html
ZopeInterfaceClass
Class
VISIBLE
Unittest for nltk.classify.senna
-
nltk.test.unit.test_senna.TestSennaPipeline.test_senna_pipeline
nltk.test.unit.test_senna.TestSennaPipeline.html#test_senna_pipeline
ZopeInterfaceFunction
Method
VISIBLE
Senna pipeline interface
-
nltk.test.unit.test_senna.TestSennaTagger
nltk.test.unit.test_senna.TestSennaTagger.html
ZopeInterfaceClass
Class
VISIBLE
Unittest for nltk.tag.senna
-
nltk.test.unit.test_senna.TestSennaTagger.test_senna_tagger
nltk.test.unit.test_senna.TestSennaTagger.html#test_senna_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_senna.TestSennaTagger.test_senna_chunk_tagger
nltk.test.unit.test_senna.TestSennaTagger.html#test_senna_chunk_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_senna.TestSennaTagger.test_senna_ner_tagger
nltk.test.unit.test_senna.TestSennaTagger.html#test_senna_ner_tagger
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_stem.SnowballTest
nltk.test.unit.test_stem.SnowballTest.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/5 method documented
-
nltk.test.unit.test_stem.SnowballTest.test_arabic
nltk.test.unit.test_stem.SnowballTest.html#test_arabic
ZopeInterfaceFunction
Method
VISIBLE
this unit testing for test the snowball arabic light stemmer this stemmer deals with prefixes and suffixes
-
nltk.test.unit.test_stem.SnowballTest.test_russian
nltk.test.unit.test_stem.SnowballTest.html#test_russian
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_stem.SnowballTest.test_german
nltk.test.unit.test_stem.SnowballTest.html#test_german
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_stem.SnowballTest.test_spanish
nltk.test.unit.test_stem.SnowballTest.html#test_spanish
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_stem.SnowballTest.test_short_strings_bug
nltk.test.unit.test_stem.SnowballTest.html#test_short_strings_bug
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_stem.PorterTest
nltk.test.unit.test_stem.PorterTest.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 3/7 methods documented
-
nltk.test.unit.test_stem.PorterTest._vocabulary
nltk.test.unit.test_stem.PorterTest.html#_vocabulary
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.test.unit.test_stem.PorterTest._test_against_expected_output
nltk.test.unit.test_stem.PorterTest.html#_test_against_expected_output
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.test.unit.test_stem.PorterTest.test_vocabulary_martin_mode
nltk.test.unit.test_stem.PorterTest.html#test_vocabulary_martin_mode
ZopeInterfaceFunction
Method
VISIBLE
Tests all words from the test vocabulary provided by M Porter
-
nltk.test.unit.test_stem.PorterTest.test_vocabulary_nltk_mode
nltk.test.unit.test_stem.PorterTest.html#test_vocabulary_nltk_mode
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_stem.PorterTest.test_vocabulary_original_mode
nltk.test.unit.test_stem.PorterTest.html#test_vocabulary_original_mode
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_stem.PorterTest.test_oed_bug
nltk.test.unit.test_stem.PorterTest.html#test_oed_bug
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.test.unit.test_stem.PorterTest.test_lowercase_option
nltk.test.unit.test_stem.PorterTest.html#test_lowercase_option
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.test.unit.test_tag.test_basic
nltk.test.unit.test_tag.html#test_basic
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_tag.setup_module
nltk.test.unit.test_tag.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.tgrep.TgrepException
nltk.tgrep.TgrepException.html
ZopeInterfaceClass
Class
VISIBLE
Tgrep exception type.
-
nltk.tgrep.ancestors
nltk.tgrep.html#ancestors
ZopeInterfaceFunction
Function
VISIBLE
Returns the list of all nodes dominating the given tree node. This method will not work with leaf nodes, since there is no way to recover the parent.
-
nltk.tgrep.unique_ancestors
nltk.tgrep.html#unique_ancestors
ZopeInterfaceFunction
Function
VISIBLE
Returns the list of all nodes dominating the given node, where there is only a single path of descent.
-
nltk.tgrep._descendants
nltk.tgrep.html#_descendants
ZopeInterfaceFunction
Function
PRIVATE
Returns the list of all nodes which are descended from the given tree node in some way.
-
nltk.tgrep._leftmost_descendants
nltk.tgrep.html#_leftmost_descendants
ZopeInterfaceFunction
Function
PRIVATE
Returns the set of all nodes descended in some way through left branches from this node.
-
nltk.tgrep._rightmost_descendants
nltk.tgrep.html#_rightmost_descendants
ZopeInterfaceFunction
Function
PRIVATE
Returns the set of all nodes descended in some way through right branches from this node.
-
nltk.tgrep._istree
nltk.tgrep.html#_istree
ZopeInterfaceFunction
Function
PRIVATE
Predicate to check whether obj is a nltk.tree.Tree.
-
nltk.tgrep._unique_descendants
nltk.tgrep.html#_unique_descendants
ZopeInterfaceFunction
Function
PRIVATE
Returns the list of all nodes descended from the given node, where there is only a single path of descent.
-
nltk.tgrep._before
nltk.tgrep.html#_before
ZopeInterfaceFunction
Function
PRIVATE
Returns the set of all nodes that are before the given node.
-
nltk.tgrep._immediately_before
nltk.tgrep.html#_immediately_before
ZopeInterfaceFunction
Function
PRIVATE
Returns the set of all nodes that are immediately before the given node.
-
nltk.tgrep._after
nltk.tgrep.html#_after
ZopeInterfaceFunction
Function
PRIVATE
Returns the set of all nodes that are after the given node.
-
nltk.tgrep._immediately_after
nltk.tgrep.html#_immediately_after
ZopeInterfaceFunction
Function
PRIVATE
Returns the set of all nodes that are immediately after the given node.
-
nltk.tgrep._tgrep_node_literal_value
nltk.tgrep.html#_tgrep_node_literal_value
ZopeInterfaceFunction
Function
PRIVATE
Gets the string value of a given parse tree node, for comparison using the tgrep node literal predicates.
-
nltk.tgrep._tgrep_macro_use_action
nltk.tgrep.html#_tgrep_macro_use_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function which looks up the macro name used.
-
nltk.tgrep._tgrep_node_action
nltk.tgrep.html#_tgrep_node_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a predicate on a tree node depending on the name of its node.
-
nltk.tgrep._tgrep_parens_action
nltk.tgrep.html#_tgrep_parens_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a predicate on a tree node from a parenthetical notation.
-
nltk.tgrep._tgrep_nltk_tree_pos_action
nltk.tgrep.html#_tgrep_nltk_tree_pos_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a predicate on a tree node which returns true if the node is located at a specific tree position.
-
nltk.tgrep._tgrep_relation_action
nltk.tgrep.html#_tgrep_relation_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a predicate on a tree node depending on its relation to other nodes in the tree.
-
nltk.tgrep._tgrep_conjunction_action
nltk.tgrep.html#_tgrep_conjunction_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a predicate on a tree node from the conjunction of several other such lambda functions.
-
nltk.tgrep._tgrep_segmented_pattern_action
nltk.tgrep.html#_tgrep_segmented_pattern_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a segmented pattern.
-
nltk.tgrep._tgrep_node_label_use_action
nltk.tgrep.html#_tgrep_node_label_use_action
ZopeInterfaceFunction
Function
PRIVATE
-
nltk.tgrep._tgrep_node_label_pred_use_action
nltk.tgrep.html#_tgrep_node_label_pred_use_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a predicate on a tree node which describes the use of a previously bound node label.
-
nltk.tgrep._tgrep_bind_node_label_action
nltk.tgrep.html#_tgrep_bind_node_label_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a predicate on a tree node which can optionally bind a matching node into the tgrep2 string's label_dict.
-
nltk.tgrep._tgrep_rel_disjunction_action
nltk.tgrep.html#_tgrep_rel_disjunction_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a lambda function representing a predicate on a tree node from the disjunction of several other such lambda functions.
-
nltk.tgrep._macro_defn_action
nltk.tgrep.html#_macro_defn_action
ZopeInterfaceFunction
Function
PRIVATE
Builds a dictionary structure which defines the given macro.
-
nltk.tgrep._tgrep_exprs_action
nltk.tgrep.html#_tgrep_exprs_action
ZopeInterfaceFunction
Function
PRIVATE
This is the top-lebel node in a tgrep2 search string; the predicate function it returns binds together all the state of a tgrep2 search string.
-
nltk.tgrep._build_tgrep_parser
nltk.tgrep.html#_build_tgrep_parser
ZopeInterfaceFunction
Function
PRIVATE
Builds a pyparsing-based parser object for tokenizing and interpreting tgrep search strings.
-
nltk.tgrep.tgrep_tokenize
nltk.tgrep.html#tgrep_tokenize
ZopeInterfaceFunction
Function
VISIBLE
Tokenizes a TGrep search string into separate tokens.
-
nltk.tgrep.tgrep_compile
nltk.tgrep.html#tgrep_compile
ZopeInterfaceFunction
Function
VISIBLE
Parses (and tokenizes, if necessary) a TGrep search string into a lambda function.
-
nltk.tgrep.treepositions_no_leaves
nltk.tgrep.html#treepositions_no_leaves
ZopeInterfaceFunction
Function
VISIBLE
Returns all the tree positions in the given tree which are not leaf nodes.
-
nltk.tgrep.tgrep_positions
nltk.tgrep.html#tgrep_positions
ZopeInterfaceFunction
Function
VISIBLE
Return the tree positions in the trees which match the given pattern.
-
nltk.tgrep.tgrep_nodes
nltk.tgrep.html#tgrep_nodes
ZopeInterfaceFunction
Function
VISIBLE
Return the tree nodes in the trees which match the given pattern.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions
nltk.test.unit.test_tgrep.TestSequenceFunctions.html
ZopeInterfaceClass
Class
VISIBLE
Class containing unit tests for nltk.tgrep.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_simple
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_simple
ZopeInterfaceFunction
Method
VISIBLE
Simple test of tokenization.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_encoding
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_encoding
ZopeInterfaceFunction
Method
VISIBLE
Test that tokenization handles bytes and strs the same way.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_link_types
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_link_types
ZopeInterfaceFunction
Method
VISIBLE
Test tokenization of basic link types.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_examples
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_examples
ZopeInterfaceFunction
Method
VISIBLE
Test tokenization of the TGrep2 manual example patterns.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_quoting
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_quoting
ZopeInterfaceFunction
Method
VISIBLE
Test tokenization of quoting.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_nodenames
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_nodenames
ZopeInterfaceFunction
Method
VISIBLE
Test tokenization of node names.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_macros
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_macros
ZopeInterfaceFunction
Method
VISIBLE
Test tokenization of macro definitions.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_simple
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_simple
ZopeInterfaceFunction
Method
VISIBLE
Test a simple use of tgrep for finding nodes matching a given pattern.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_printing
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_printing
ZopeInterfaceFunction
Method
VISIBLE
Test that the tgrep print operator ' is properly ignored.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_encoding
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_encoding
ZopeInterfaceFunction
Method
VISIBLE
Test that tgrep search strings handles bytes and strs the same way.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_nocase
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_nocase
ZopeInterfaceFunction
Method
VISIBLE
Test selecting nodes using case insensitive node names.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_quoted
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_quoted
ZopeInterfaceFunction
Method
VISIBLE
Test selecting nodes using quoted node names.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_regex
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_regex
ZopeInterfaceFunction
Method
VISIBLE
Test regex matching on nodes.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_regex_2
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_regex_2
ZopeInterfaceFunction
Method
VISIBLE
Test regex matching on nodes.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_tree_position
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_tree_position
ZopeInterfaceFunction
Method
VISIBLE
Test matching on nodes based on NLTK tree position.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_node_noleaves
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_node_noleaves
ZopeInterfaceFunction
Method
VISIBLE
Test node name matching with the search_leaves flag set to False.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.tests_rel_dominance
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#tests_rel_dominance
ZopeInterfaceFunction
Method
VISIBLE
Test matching nodes based on dominance relations.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_bad_operator
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_bad_operator
ZopeInterfaceFunction
Method
VISIBLE
Test error handling of undefined tgrep operators.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_rel_sister_nodes
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_rel_sister_nodes
ZopeInterfaceFunction
Method
VISIBLE
Test matching sister nodes in a tree.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.tests_rel_indexed_children
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#tests_rel_indexed_children
ZopeInterfaceFunction
Method
VISIBLE
Test matching nodes based on their index in their parent node.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_rel_precedence
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_rel_precedence
ZopeInterfaceFunction
Method
VISIBLE
Test matching nodes based on precedence relations.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_examples
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_examples
ZopeInterfaceFunction
Method
VISIBLE
Test the Basic Examples from the TGrep2 manual.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_use_macros
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_use_macros
ZopeInterfaceFunction
Method
VISIBLE
Test defining and using tgrep2 macros.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_node_labels
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_node_labels
ZopeInterfaceFunction
Method
VISIBLE
Test tokenization of labeled nodes.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_tokenize_segmented_patterns
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_tokenize_segmented_patterns
ZopeInterfaceFunction
Method
VISIBLE
Test tokenization of segmented patterns.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_labeled_nodes
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_labeled_nodes
ZopeInterfaceFunction
Method
VISIBLE
Test labeled nodes.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_multiple_conjs
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_multiple_conjs
ZopeInterfaceFunction
Method
VISIBLE
Test that multiple (3 or more) conjunctions of node relations are handled properly.
-
nltk.test.unit.test_tgrep.TestSequenceFunctions.test_trailing_semicolon
nltk.test.unit.test_tgrep.TestSequenceFunctions.html#test_trailing_semicolon
ZopeInterfaceFunction
Method
VISIBLE
Test that semicolons at the end of a tgrep2 search string won't cause a parse failure.
-
nltk.test.unit.test_tokenize.setup_module
nltk.test.unit.test_tokenize.html#setup_module
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.test_tokenize.TestTokenize
nltk.test.unit.test_tokenize.TestTokenize.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 11/16 methods documented
-
nltk.test.unit.test_tokenize.TestTokenize.test_sonority_sequencing_syllable_tokenizer
nltk.test.unit.test_tokenize.TestTokenize.html#test_sonority_sequencing_syllable_tokenizer
ZopeInterfaceFunction
Method
VISIBLE
Test SyllableTokenizer tokenizer.
-
nltk.test.unit.test_tokenize.TestTokenize.test_legality_principle_syllable_tokenizer
nltk.test.unit.test_tokenize.TestTokenize.html#test_legality_principle_syllable_tokenizer
ZopeInterfaceFunction
Method
VISIBLE
Test LegalitySyllableTokenizer tokenizer.
-
nltk.test.unit.test_tokenize.TestTokenize.test_stanford_segmenter_arabic
nltk.test.unit.test_tokenize.TestTokenize.html#test_stanford_segmenter_arabic
ZopeInterfaceFunction
Method
VISIBLE
Test the Stanford Word Segmenter for Arabic (default config)
-
nltk.test.unit.test_tokenize.TestTokenize.test_stanford_segmenter_chinese
nltk.test.unit.test_tokenize.TestTokenize.html#test_stanford_segmenter_chinese
ZopeInterfaceFunction
Method
VISIBLE
Test the Stanford Word Segmenter for Chinese (default config)
-
nltk.test.unit.test_tokenize.TestTokenize.test_phone_tokenizer
nltk.test.unit.test_tokenize.TestTokenize.html#test_phone_tokenizer
ZopeInterfaceFunction
Method
VISIBLE
Test a string that resembles a phone number but contains a newline
-
nltk.test.unit.test_tokenize.TestTokenize.test_pad_asterisk
nltk.test.unit.test_tokenize.TestTokenize.html#test_pad_asterisk
ZopeInterfaceFunction
Method
VISIBLE
Test padding of asterisk for word tokenization.
-
nltk.test.unit.test_tokenize.TestTokenize.test_pad_dotdot
nltk.test.unit.test_tokenize.TestTokenize.html#test_pad_dotdot
ZopeInterfaceFunction
Method
VISIBLE
Test padding of dotdot* for word tokenization.
-
nltk.test.unit.test_tokenize.TestTokenize.test_remove_handle
nltk.test.unit.test_tokenize.TestTokenize.html#test_remove_handle
ZopeInterfaceFunction
Method
VISIBLE
Test remove_handle() from casual.py with specially crafted edge cases
-
nltk.test.unit.test_tokenize.TestTokenize.test_treebank_span_tokenizer
nltk.test.unit.test_tokenize.TestTokenize.html#test_treebank_span_tokenizer
ZopeInterfaceFunction
Method
VISIBLE
Test TreebankWordTokenizer.span_tokenize function
-
nltk.test.unit.test_tokenize.TestTokenize.test_word_tokenize
nltk.test.unit.test_tokenize.TestTokenize.html#test_word_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Test word_tokenize function
-
nltk.test.unit.test_tokenize.TestTokenize.test_punkt_pair_iter
nltk.test.unit.test_tokenize.TestTokenize.html#test_punkt_pair_iter
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_tokenize.TestTokenize.test_punkt_pair_iter_handles_stop_iteration_exception
nltk.test.unit.test_tokenize.TestTokenize.html#test_punkt_pair_iter_handles_stop_iteration_exception
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_tokenize.TestTokenize.test_punkt_tokenize_words_handles_stop_iteration_exception
nltk.test.unit.test_tokenize.TestTokenize.html#test_punkt_tokenize_words_handles_stop_iteration_exception
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_tokenize.TestTokenize.test_punkt_tokenize_custom_lang_vars
nltk.test.unit.test_tokenize.TestTokenize.html#test_punkt_tokenize_custom_lang_vars
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_tokenize.TestTokenize.test_punkt_tokenize_no_custom_lang_vars
nltk.test.unit.test_tokenize.TestTokenize.html#test_punkt_tokenize_no_custom_lang_vars
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.twitter.api.BasicTweetHandler
nltk.twitter.api.BasicTweetHandler.html
ZopeInterfaceClass
Class
VISIBLE
Minimal implementation of TweetHandler.
-
nltk.twitter.api.BasicTweetHandler.__init__
nltk.twitter.api.BasicTweetHandler.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.twitter.api.BasicTweetHandler.limit
nltk.twitter.api.BasicTweetHandler.html#limit
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.twitter.api.BasicTweetHandler.counter
nltk.twitter.api.BasicTweetHandler.html#counter
ZopeInterfaceAttribute
Instance Variable
VISIBLE
A flag to indicate to the client whether to stop fetching data given some condition (e.g., reaching a date limit).
-
nltk.twitter.api.BasicTweetHandler.do_stop
nltk.twitter.api.BasicTweetHandler.html#do_stop
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Stores the id of the last fetched Tweet to handle pagination.
-
nltk.twitter.api.BasicTweetHandler.max_id
nltk.twitter.api.BasicTweetHandler.html#max_id
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.twitter.api.BasicTweetHandler.do_continue
nltk.twitter.api.BasicTweetHandler.html#do_continue
ZopeInterfaceFunction
Method
VISIBLE
Returns False if the client should stop fetching Tweets.
-
nltk.twitter.api.TweetHandlerI
nltk.twitter.api.TweetHandlerI.html
ZopeInterfaceClass
Class
VISIBLE
Interface class whose subclasses should implement a handle method that Twitter clients can delegate to.
-
nltk.twitter.api.TweetHandlerI.__init__
nltk.twitter.api.TweetHandlerI.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.twitter.api.TweetHandlerI.upper_date_limit
nltk.twitter.api.TweetHandlerI.html#upper_date_limit
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.twitter.api.TweetHandlerI.lower_date_limit
nltk.twitter.api.TweetHandlerI.html#lower_date_limit
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.twitter.api.TweetHandlerI.startingup
nltk.twitter.api.TweetHandlerI.html#startingup
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.twitter.api.TweetHandlerI.handle
nltk.twitter.api.TweetHandlerI.html#handle
ZopeInterfaceFunction
Method
VISIBLE
Deal appropriately with data returned by the Twitter API
-
nltk.twitter.api.TweetHandlerI.on_finish
nltk.twitter.api.TweetHandlerI.html#on_finish
ZopeInterfaceFunction
Method
VISIBLE
Actions when the tweet limit has been reached
-
nltk.twitter.api.TweetHandlerI.check_date_limit
nltk.twitter.api.TweetHandlerI.html#check_date_limit
ZopeInterfaceFunction
Method
VISIBLE
Validate date limits.
-
nltk.twitter.api.TweetHandlerI.do_stop
nltk.twitter.api.TweetHandlerI.html#do_stop
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Stores the id of the last fetched Tweet to handle pagination.
-
nltk.twitter.twitterclient.Streamer.handler
nltk.twitter.twitterclient.Streamer.html#handler
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.twitter.twitterclient.Query.handler
nltk.twitter.twitterclient.Query.html#handler
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.twitter.twitterclient.Query.expand_tweetids
nltk.twitter.twitterclient.Query.html#expand_tweetids
ZopeInterfaceFunction
Method
VISIBLE
Given a file object containing a list of Tweet IDs, fetch the corresponding full Tweets from the Twitter API.
-
nltk.twitter.twitterclient.TweetViewer.handle
nltk.twitter.twitterclient.TweetViewer.html#handle
ZopeInterfaceFunction
Method
VISIBLE
Direct data to sys.stdout
-
nltk.twitter.twitterclient.TweetWriter.handle
nltk.twitter.twitterclient.TweetWriter.html#handle
ZopeInterfaceFunction
Method
VISIBLE
Write Twitter data as line-delimited JSON into one or more files.
-
nltk.test.unit.test_util.TestEverygrams
nltk.test.unit.test_util.TestEverygrams.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 0/1 instance variable, 1/6 method documented
-
nltk.test.unit.test_util.TestEverygrams.setUp
nltk.test.unit.test_util.TestEverygrams.html#setUp
ZopeInterfaceFunction
Method
VISIBLE
Form test data for tests.
-
nltk.test.unit.test_util.TestEverygrams.test_data
nltk.test.unit.test_util.TestEverygrams.html#test_data
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.test_util.TestEverygrams.test_everygrams_without_padding
nltk.test.unit.test_util.TestEverygrams.html#test_everygrams_without_padding
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_util.TestEverygrams.test_everygrams_max_len
nltk.test.unit.test_util.TestEverygrams.html#test_everygrams_max_len
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_util.TestEverygrams.test_everygrams_min_len
nltk.test.unit.test_util.TestEverygrams.html#test_everygrams_min_len
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_util.TestEverygrams.test_everygrams_pad_right
nltk.test.unit.test_util.TestEverygrams.html#test_everygrams_pad_right
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_util.TestEverygrams.test_everygrams_pad_left
nltk.test.unit.test_util.TestEverygrams.html#test_everygrams_pad_left
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo
nltk.test.unit.test_wordnet.WordnNetDemo.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_retrieve_synset
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_retrieve_synset
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_retrieve_synsets
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_retrieve_synsets
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_hyperhyponyms
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_hyperhyponyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_derivationally_related_forms
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_derivationally_related_forms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_meronyms_holonyms
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_meronyms_holonyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_antonyms
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_antonyms
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_misc_relations
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_misc_relations
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_lch
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_lch
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_domains
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_in_topic_domains
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_in_topic_domains
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_wordnet_similarities
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_wordnet_similarities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_omw_lemma_no_trailing_underscore
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_omw_lemma_no_trailing_underscore
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.test_wordnet.WordnNetDemo.test_iterable_type_for_all_lemma_names
nltk.test.unit.test_wordnet.WordnNetDemo.html#test_iterable_type_for_all_lemma_names
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEU
nltk.test.unit.translate.test_bleu.TestBLEU.html
ZopeInterfaceClass
Class
VISIBLE
No class docstring; 1/5 method documented
-
nltk.test.unit.translate.test_bleu.TestBLEU.test_modified_precision
nltk.test.unit.translate.test_bleu.TestBLEU.html#test_modified_precision
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.test.unit.translate.test_bleu.TestBLEU.test_brevity_penalty
nltk.test.unit.translate.test_bleu.TestBLEU.html#test_brevity_penalty
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEU.test_zero_matches
nltk.test.unit.translate.test_bleu.TestBLEU.html#test_zero_matches
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEU.test_full_matches
nltk.test.unit.translate.test_bleu.TestBLEU.html#test_full_matches
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEU.test_partial_matches_hypothesis_longer_than_reference
nltk.test.unit.translate.test_bleu.TestBLEU.html#test_partial_matches_hypothesis_longer_than_reference
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.test_case_where_n_is_bigger_than_hypothesis_length
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.html#test_case_where_n_is_bigger_than_hypothesis_length
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.test_empty_hypothesis
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.html#test_empty_hypothesis
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.test_empty_references
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.html#test_empty_references
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.test_empty_references_and_hypothesis
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.html#test_empty_references_and_hypothesis
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.test_reference_or_hypothesis_shorter_than_fourgrams
nltk.test.unit.translate.test_bleu.TestBLEUFringeCases.html#test_reference_or_hypothesis_shorter_than_fourgrams
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUvsMteval13a
nltk.test.unit.translate.test_bleu.TestBLEUvsMteval13a.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUvsMteval13a.test_corpus_bleu
nltk.test.unit.translate.test_bleu.TestBLEUvsMteval13a.html#test_corpus_bleu
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUWithBadSentence
nltk.test.unit.translate.test_bleu.TestBLEUWithBadSentence.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_bleu.TestBLEUWithBadSentence.test_corpus_bleu_with_bad_sentence
nltk.test.unit.translate.test_bleu.TestBLEUWithBadSentence.html#test_corpus_bleu_with_bad_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm1.TestIBMModel1
nltk.test.unit.translate.test_ibm1.TestIBMModel1.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm1.TestIBMModel1.test_set_uniform_translation_probabilities
nltk.test.unit.translate.test_ibm1.TestIBMModel1.html#test_set_uniform_translation_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm1.TestIBMModel1.test_set_uniform_translation_probabilities_of_non_domain_values
nltk.test.unit.translate.test_ibm1.TestIBMModel1.html#test_set_uniform_translation_probabilities_of_non_domain_values
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm1.TestIBMModel1.test_prob_t_a_given_s
nltk.test.unit.translate.test_ibm1.TestIBMModel1.html#test_prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm2.TestIBMModel2
nltk.test.unit.translate.test_ibm2.TestIBMModel2.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm2.TestIBMModel2.test_set_uniform_alignment_probabilities
nltk.test.unit.translate.test_ibm2.TestIBMModel2.html#test_set_uniform_alignment_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm2.TestIBMModel2.test_set_uniform_alignment_probabilities_of_non_domain_values
nltk.test.unit.translate.test_ibm2.TestIBMModel2.html#test_set_uniform_alignment_probabilities_of_non_domain_values
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm2.TestIBMModel2.test_prob_t_a_given_s
nltk.test.unit.translate.test_ibm2.TestIBMModel2.html#test_prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm3.TestIBMModel3
nltk.test.unit.translate.test_ibm3.TestIBMModel3.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm3.TestIBMModel3.test_set_uniform_distortion_probabilities
nltk.test.unit.translate.test_ibm3.TestIBMModel3.html#test_set_uniform_distortion_probabilities
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm3.TestIBMModel3.test_set_uniform_distortion_probabilities_of_non_domain_values
nltk.test.unit.translate.test_ibm3.TestIBMModel3.html#test_set_uniform_distortion_probabilities_of_non_domain_values
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm3.TestIBMModel3.test_prob_t_a_given_s
nltk.test.unit.translate.test_ibm3.TestIBMModel3.html#test_prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.chunk.named_entity.NEChunkParserTagger
nltk.chunk.named_entity.NEChunkParserTagger.html
ZopeInterfaceClass
Class
VISIBLE
The IOB tagger used by the chunk parser.
-
nltk.chunk.named_entity.NEChunkParserTagger.__init__
nltk.chunk.named_entity.NEChunkParserTagger.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.chunk.named_entity.NEChunkParserTagger._classifier_builder
nltk.chunk.named_entity.NEChunkParserTagger.html#_classifier_builder
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.chunk.named_entity.NEChunkParserTagger._english_wordlist
nltk.chunk.named_entity.NEChunkParserTagger.html#_english_wordlist
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.chunk.named_entity.NEChunkParserTagger._en_wordlist
nltk.chunk.named_entity.NEChunkParserTagger.html#_en_wordlist
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.named_entity.NEChunkParserTagger._feature_detector
nltk.chunk.named_entity.NEChunkParserTagger.html#_feature_detector
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.chunk.named_entity.NEChunkParser
nltk.chunk.named_entity.NEChunkParser.html
ZopeInterfaceClass
Class
VISIBLE
Expected input: list of pos-tagged words
-
nltk.chunk.named_entity.NEChunkParser.__init__
nltk.chunk.named_entity.NEChunkParser.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.chunk.named_entity.NEChunkParser.parse
nltk.chunk.named_entity.NEChunkParser.html#parse
ZopeInterfaceFunction
Method
VISIBLE
Each token should be a pos-tagged word
-
nltk.chunk.named_entity.NEChunkParser._train
nltk.chunk.named_entity.NEChunkParser.html#_train
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.chunk.named_entity.NEChunkParser._tagger
nltk.chunk.named_entity.NEChunkParser.html#_tagger
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.chunk.named_entity.NEChunkParser._tagged_to_parse
nltk.chunk.named_entity.NEChunkParser.html#_tagged_to_parse
ZopeInterfaceFunction
Method
PRIVATE
Convert a list of tagged tokens to a chunk-parse tree.
-
nltk.chunk.named_entity.NEChunkParser._parse_to_tagged
nltk.chunk.named_entity.NEChunkParser.html#_parse_to_tagged
ZopeInterfaceFunction
Static Method
PRIVATE
Convert a chunk-parse tree to a list of tagged tokens.
-
nltk.chunk.named_entity.shape
nltk.chunk.named_entity.html#shape
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chunk.named_entity.simplify_pos
nltk.chunk.named_entity.html#simplify_pos
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chunk.named_entity.postag_tree
nltk.chunk.named_entity.html#postag_tree
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chunk.named_entity.load_ace_data
nltk.chunk.named_entity.html#load_ace_data
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chunk.named_entity.load_ace_file
nltk.chunk.named_entity.html#load_ace_file
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chunk.named_entity.cmp_chunks
nltk.chunk.named_entity.html#cmp_chunks
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.chunk.named_entity.build_model
nltk.chunk.named_entity.html#build_model
ZopeInterfaceFunction
Function
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm4.TestIBMModel4
nltk.test.unit.translate.test_ibm4.TestIBMModel4.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm4.TestIBMModel4.test_set_uniform_distortion_probabilities_of_max_displacements
nltk.test.unit.translate.test_ibm4.TestIBMModel4.html#test_set_uniform_distortion_probabilities_of_max_displacements
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm4.TestIBMModel4.test_set_uniform_distortion_probabilities_of_non_domain_values
nltk.test.unit.translate.test_ibm4.TestIBMModel4.html#test_set_uniform_distortion_probabilities_of_non_domain_values
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm4.TestIBMModel4.test_prob_t_a_given_s
nltk.test.unit.translate.test_ibm4.TestIBMModel4.html#test_prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm5.TestIBMModel5
nltk.test.unit.translate.test_ibm5.TestIBMModel5.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm5.TestIBMModel5.test_set_uniform_vacancy_probabilities_of_max_displacements
nltk.test.unit.translate.test_ibm5.TestIBMModel5.html#test_set_uniform_vacancy_probabilities_of_max_displacements
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm5.TestIBMModel5.test_set_uniform_vacancy_probabilities_of_non_domain_values
nltk.test.unit.translate.test_ibm5.TestIBMModel5.html#test_set_uniform_vacancy_probabilities_of_non_domain_values
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm5.TestIBMModel5.test_prob_t_a_given_s
nltk.test.unit.translate.test_ibm5.TestIBMModel5.html#test_prob_t_a_given_s
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm5.TestIBMModel5.test_prune
nltk.test.unit.translate.test_ibm5.TestIBMModel5.html#test_prune
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.__TEST_SRC_SENTENCE
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#__TEST_SRC_SENTENCE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.__TEST_TRG_SENTENCE
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#__TEST_TRG_SENTENCE
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_vocabularies_are_initialized
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_vocabularies_are_initialized
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_vocabularies_are_initialized_even_with_empty_corpora
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_vocabularies_are_initialized_even_with_empty_corpora
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_best_model2_alignment
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_best_model2_alignment
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_best_model2_alignment_does_not_change_pegged_alignment
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_best_model2_alignment_does_not_change_pegged_alignment
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_best_model2_alignment_handles_fertile_words
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_best_model2_alignment_handles_fertile_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_best_model2_alignment_handles_empty_src_sentence
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_best_model2_alignment_handles_empty_src_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_best_model2_alignment_handles_empty_trg_sentence
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_best_model2_alignment_handles_empty_trg_sentence
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_neighboring_finds_neighbor_alignments
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_neighboring_finds_neighbor_alignments
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_neighboring_sets_neighbor_alignment_info
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_neighboring_sets_neighbor_alignment_info
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_neighboring_returns_neighbors_with_pegged_alignment
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_neighboring_returns_neighbors_with_pegged_alignment
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_hillclimb
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_hillclimb
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_ibm_model.TestIBMModel.test_sample
nltk.test.unit.translate.test_ibm_model.TestIBMModel.html#test_sample
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_meteor.TestMETEOR
nltk.test.unit.translate.test_meteor.TestMETEOR.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_meteor.TestMETEOR.test_preprocess
nltk.test.unit.translate.test_meteor.TestMETEOR.html#test_preprocess
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_nist.TestNIST
nltk.test.unit.translate.test_nist.TestNIST.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_nist.TestNIST.test_sentence_nist
nltk.test.unit.translate.test_nist.TestNIST.html#test_sentence_nist
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.classify.svm.SvmClassifier
nltk.classify.svm.SvmClassifier.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.classify.svm.SvmClassifier.__init__
nltk.classify.svm.SvmClassifier.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.test_find_all_src_phrases
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#test_find_all_src_phrases
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.test_distortion_score
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#test_distortion_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.test_distortion_score_of_first_expansion
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#test_distortion_score_of_first_expansion
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.test_compute_future_costs
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#test_compute_future_costs
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.test_compute_future_costs_for_phrases_not_in_phrase_table
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#test_compute_future_costs_for_phrases_not_in_phrase_table
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.test_future_score
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#test_future_score
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.test_valid_phrases
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#test_valid_phrases
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.create_fake_phrase_table
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#create_fake_phrase_table
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.create_fake_language_model
nltk.test.unit.translate.test_stack_decoder.TestStackDecoder.html#create_fake_language_model
ZopeInterfaceFunction
Static Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.setUp
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html#setUp
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.hypothesis_chain
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html#hypothesis_chain
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.test_translation_so_far
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html#test_translation_so_far
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.test_translation_so_far_for_empty_hypothesis
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html#test_translation_so_far_for_empty_hypothesis
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.test_total_translated_words
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html#test_total_translated_words
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.test_translated_positions
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html#test_translated_positions
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.test_untranslated_spans
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html#test_untranslated_spans
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.test_untranslated_spans_for_empty_hypothesis
nltk.test.unit.translate.test_stack_decoder.TestHypothesis.html#test_untranslated_spans_for_empty_hypothesis
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStack
nltk.test.unit.translate.test_stack_decoder.TestStack.html
ZopeInterfaceClass
Class
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStack.test_push_bumps_off_worst_hypothesis_when_stack_is_full
nltk.test.unit.translate.test_stack_decoder.TestStack.html#test_push_bumps_off_worst_hypothesis_when_stack_is_full
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStack.test_push_removes_hypotheses_that_fall_below_beam_threshold
nltk.test.unit.translate.test_stack_decoder.TestStack.html#test_push_removes_hypotheses_that_fall_below_beam_threshold
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStack.test_push_does_not_add_hypothesis_that_falls_below_beam_threshold
nltk.test.unit.translate.test_stack_decoder.TestStack.html#test_push_does_not_add_hypothesis_that_falls_below_beam_threshold
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStack.test_best_returns_the_best_hypothesis
nltk.test.unit.translate.test_stack_decoder.TestStack.html#test_best_returns_the_best_hypothesis
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.test.unit.translate.test_stack_decoder.TestStack.test_best_returns_none_when_stack_is_empty
nltk.test.unit.translate.test_stack_decoder.TestStack.html#test_best_returns_none_when_stack_is_empty
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer
nltk.tokenize.nist.NISTTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
This NIST tokenizer is sentence-based instead of the original paragraph-based tokenization from mteval-14.pl; The sentence-based tokenization is consistent with the other tokenizers available in NLTK.
-
nltk.tokenize.nist.NISTTokenizer.STRIP_SKIP
nltk.tokenize.nist.NISTTokenizer.html#STRIP_SKIP
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.STRIP_EOL_HYPHEN
nltk.tokenize.nist.NISTTokenizer.html#STRIP_EOL_HYPHEN
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.PUNCT
nltk.tokenize.nist.NISTTokenizer.html#PUNCT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.PERIOD_COMMA_PRECEED
nltk.tokenize.nist.NISTTokenizer.html#PERIOD_COMMA_PRECEED
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.PERIOD_COMMA_FOLLOW
nltk.tokenize.nist.NISTTokenizer.html#PERIOD_COMMA_FOLLOW
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.DASH_PRECEED_DIGIT
nltk.tokenize.nist.NISTTokenizer.html#DASH_PRECEED_DIGIT
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.LANG_DEPENDENT_REGEXES
nltk.tokenize.nist.NISTTokenizer.html#LANG_DEPENDENT_REGEXES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.pup_number
nltk.tokenize.nist.NISTTokenizer.html#pup_number
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.pup_punct
nltk.tokenize.nist.NISTTokenizer.html#pup_punct
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.pup_symbol
nltk.tokenize.nist.NISTTokenizer.html#pup_symbol
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.number_regex
nltk.tokenize.nist.NISTTokenizer.html#number_regex
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.punct_regex
nltk.tokenize.nist.NISTTokenizer.html#punct_regex
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.symbol_regex
nltk.tokenize.nist.NISTTokenizer.html#symbol_regex
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.NONASCII
nltk.tokenize.nist.NISTTokenizer.html#NONASCII
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.PUNCT_1
nltk.tokenize.nist.NISTTokenizer.html#PUNCT_1
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.PUNCT_2
nltk.tokenize.nist.NISTTokenizer.html#PUNCT_2
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.SYMBOLS
nltk.tokenize.nist.NISTTokenizer.html#SYMBOLS
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.INTERNATIONAL_REGEXES
nltk.tokenize.nist.NISTTokenizer.html#INTERNATIONAL_REGEXES
ZopeInterfaceAttribute
Class Variable
VISIBLE
Undocumented
-
nltk.tokenize.nist.NISTTokenizer.lang_independent_sub
nltk.tokenize.nist.NISTTokenizer.html#lang_independent_sub
ZopeInterfaceFunction
Method
VISIBLE
Performs the language independent string substituitions.
-
nltk.tokenize.nist.NISTTokenizer.tokenize
nltk.tokenize.nist.NISTTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Return a tokenized copy of s.
-
nltk.tokenize.nist.NISTTokenizer.international_tokenize
nltk.tokenize.nist.NISTTokenizer.html#international_tokenize
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.stanford._stanford_url
nltk.tokenize.stanford.html#_stanford_url
ZopeInterfaceAttribute
Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford.StanfordTokenizer
nltk.tokenize.stanford.StanfordTokenizer.html
ZopeInterfaceClass
Class
VISIBLE
Interface to the Stanford Tokenizer
-
nltk.tokenize.stanford.StanfordTokenizer._JAR
nltk.tokenize.stanford.StanfordTokenizer.html#_JAR
ZopeInterfaceAttribute
Class Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford.StanfordTokenizer.__init__
nltk.tokenize.stanford.StanfordTokenizer.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.tokenize.stanford.StanfordTokenizer._stanford_jar
nltk.tokenize.stanford.StanfordTokenizer.html#_stanford_jar
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford.StanfordTokenizer._encoding
nltk.tokenize.stanford.StanfordTokenizer.html#_encoding
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford.StanfordTokenizer.java_options
nltk.tokenize.stanford.StanfordTokenizer.html#java_options
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.tokenize.stanford.StanfordTokenizer._options_cmd
nltk.tokenize.stanford.StanfordTokenizer.html#_options_cmd
ZopeInterfaceAttribute
Instance Variable
PRIVATE
Undocumented
-
nltk.tokenize.stanford.StanfordTokenizer._parse_tokenized_output
nltk.tokenize.stanford.StanfordTokenizer.html#_parse_tokenized_output
ZopeInterfaceFunction
Static Method
PRIVATE
Undocumented
-
nltk.tokenize.stanford.StanfordTokenizer.tokenize
nltk.tokenize.stanford.StanfordTokenizer.html#tokenize
ZopeInterfaceFunction
Method
VISIBLE
Use stanford tokenizer's PTBTokenizer to tokenize multiple sentences.
-
nltk.tokenize.stanford.StanfordTokenizer._execute
nltk.tokenize.stanford.StanfordTokenizer.html#_execute
ZopeInterfaceFunction
Method
PRIVATE
Undocumented
-
nltk.corpus.europarl_raw.danish
nltk.corpus.europarl_raw.html#danish
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.dutch
nltk.corpus.europarl_raw.html#dutch
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.english
nltk.corpus.europarl_raw.html#english
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.finnish
nltk.corpus.europarl_raw.html#finnish
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.french
nltk.corpus.europarl_raw.html#french
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.german
nltk.corpus.europarl_raw.html#german
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.greek
nltk.corpus.europarl_raw.html#greek
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.italian
nltk.corpus.europarl_raw.html#italian
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.portuguese
nltk.corpus.europarl_raw.html#portuguese
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.spanish
nltk.corpus.europarl_raw.html#spanish
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.corpus.europarl_raw.swedish
nltk.corpus.europarl_raw.html#swedish
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.treeprettyprinter.ANSICOLOR
nltk.treeprettyprinter.html#ANSICOLOR
ZopeInterfaceAttribute
Variable
VISIBLE
Undocumented
-
nltk.treeprettyprinter.TreePrettyPrinter
nltk.treeprettyprinter.TreePrettyPrinter.html
ZopeInterfaceClass
Class
VISIBLE
Pretty-print a tree in text format, either as ASCII or Unicode. The tree can be a normal tree, or discontinuous.
-
nltk.treeprettyprinter.TreePrettyPrinter.__init__
nltk.treeprettyprinter.TreePrettyPrinter.html#__init__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.treeprettyprinter.TreePrettyPrinter.nodes
nltk.treeprettyprinter.TreePrettyPrinter.html#nodes
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.treeprettyprinter.TreePrettyPrinter.coords
nltk.treeprettyprinter.TreePrettyPrinter.html#coords
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.treeprettyprinter.TreePrettyPrinter.edges
nltk.treeprettyprinter.TreePrettyPrinter.html#edges
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.treeprettyprinter.TreePrettyPrinter.highlight
nltk.treeprettyprinter.TreePrettyPrinter.html#highlight
ZopeInterfaceAttribute
Instance Variable
VISIBLE
Undocumented
-
nltk.treeprettyprinter.TreePrettyPrinter.__str__
nltk.treeprettyprinter.TreePrettyPrinter.html#__str__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.treeprettyprinter.TreePrettyPrinter.__repr__
nltk.treeprettyprinter.TreePrettyPrinter.html#__repr__
ZopeInterfaceFunction
Method
VISIBLE
Undocumented
-
nltk.treeprettyprinter.TreePrettyPrinter.nodecoords
nltk.treeprettyprinter.TreePrettyPrinter.html#nodecoords
ZopeInterfaceFunction
Static Method
VISIBLE
Produce coordinates of nodes on a grid.
-
nltk.treeprettyprinter.TreePrettyPrinter.text
nltk.treeprettyprinter.TreePrettyPrinter.html#text
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.treeprettyprinter.TreePrettyPrinter.svg
nltk.treeprettyprinter.TreePrettyPrinter.html#svg
ZopeInterfaceFunction
Method
VISIBLE
-
nltk.treeprettyprinter.test
nltk.treeprettyprinter.html#test
ZopeInterfaceFunction
Function
VISIBLE
Do some tree drawing tests.
-
nltk.twitter.twitter_demo.expand_tweetids_demo
nltk.twitter.twitter_demo.html#expand_tweetids_demo
ZopeInterfaceFunction
Function
VISIBLE
Given a file object containing a list of Tweet IDs, fetch the corresponding full Tweets, if available.